Twitter: reverse the tweets list, to print in ascending order

This commit is contained in:
Brian S. Stephan 2011-02-22 22:59:55 -06:00
parent 902b7755e5
commit 414514d3b2
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ class Twitter(Module):
if since_id is not None and output_channel != '':
tweets = self.twit.GetFriendsTimeline(since_id=since_id)
for tweet in tweets:
for tweet in tweets.reverse():
tweet_text = self._return_tweet_or_retweet_text(tweet=tweet, print_source=True)
self.sendmsg(self.connection, output_channel.encode('utf-8', 'ignore'), tweet_text)
@ -251,7 +251,7 @@ class Twitter(Module):
new_since_id = self._get_latest_tweet_id(tweets, since_id)
tweets = self.twit.GetMentions(since_id=since_id)
for tweet in tweets:
for tweet in tweets.reverse():
tweet_text = self._return_tweet_or_retweet_text(tweet=tweet, print_source=True)
self.sendmsg(self.connection, output_channel.encode('utf-8', 'ignore'), tweet_text)