Twitter: reverse the tweets list, to print in ascending order
This commit is contained in:
parent
902b7755e5
commit
414514d3b2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user