Twitter: Remove useless sorting
parent
0c90575879
commit
3cc34fd142
|
@ -121,7 +121,7 @@ def fetch(method, maxIds, name):
|
|||
tweets = method(since_id=maxIds[name])
|
||||
if not tweets:
|
||||
return []
|
||||
tweets.sort(key=operator.attrgetter('id'))
|
||||
|
||||
if maxIds[name] is None:
|
||||
maxIds[name] = tweets[-1].id
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue