search order
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Thu, 29 May 2014 04:07:23 +0000 (13:07 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Thu, 29 May 2014 04:07:23 +0000 (13:07 +0900)
rainbowstream/rainbow.py

index dc714e6..4109b29 100644 (file)
@@ -251,7 +251,7 @@ def search():
         if g['stuff'][0] == '#':
             rel = t.search.tweets(q=g['stuff'])['statuses']
             print('Newest', SEARCH_MAX_RECORD, 'tweet:')
-            for i in xrange(SEARCH_MAX_RECORD):
+            for i in reversed(xrange(SEARCH_MAX_RECORD)):
                 draw(t=rel[i], keyword=g['stuff'].strip()[1:])
             printNicely('')
         else: