Fix #187
This commit is contained in:
parent
bd78ea8b80
commit
005547cb82
@ -39,10 +39,12 @@ def get_feed(usernames, daysMaxOld=10, includeRT=True):
|
|||||||
userFeed.append(tweet)
|
userFeed.append(tweet)
|
||||||
else:
|
else:
|
||||||
userFeed+=feed
|
userFeed+=feed
|
||||||
|
try:
|
||||||
for uf in userFeed:
|
for uf in userFeed:
|
||||||
if uf == 'emptyFeed':
|
if uf == 'emptyFeed':
|
||||||
userFeed.remove(uf)
|
userFeed.remove(uf)
|
||||||
userFeed.sort(key=lambda item:item['timeStamp'], reverse=True)
|
userFeed.sort(key=lambda item:item['timeStamp'], reverse=True)
|
||||||
|
except:
|
||||||
|
print("Error sorting feed - nitter/feed.py")
|
||||||
|
return userFeed
|
||||||
return userFeed
|
return userFeed
|
||||||
|
Reference in New Issue
Block a user