From 26af23b37cdcb2c7560ada288145fcc3047cdc8e Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 21 Apr 2010 10:20:03 -0400 Subject: [PATCH] Partially fixed names in DMs --- TODO | 3 ++- mytwitter.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index b93a9ce..c67e540 100644 --- a/TODO +++ b/TODO @@ -11,5 +11,6 @@ features: bugs: -* Direct Messages have no names +* Direct Messages have no names, only screen names (may not be fixable without + considerable tweets to python-twitter) * single-tweet tabs will not persist properly diff --git a/mytwitter.py b/mytwitter.py index 15b5e06..08ef7f6 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -433,7 +433,7 @@ class MyTwitter(): status = Status() status.id = dm.id status.user = User() - status.user.screen_name = dm.sender.screen_name + status.user.screen_name = dm.sender_screen_name status.user.name = dm.sender.name status.created_at = dm.created_at status.text = dm.text