Twitter: Remove useless sorting

master
Valentin Lorentz 2013-05-10 22:44:18 +02:00
parent 0c90575879
commit 3cc34fd142
1 changed files with 1 additions and 1 deletions

View File

@ -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 []