fix bug: latest tweet timestamp check

master
wlt233 1 week ago
parent 62b5377c69
commit 1bcaf7659d

@ -26,7 +26,8 @@ def check_new_tweets(tweets, list_id):
new_tweets.append(tweet)
LATEST_TWEET_ID_DICT[list_id] = tweets[0]["rest_id"]
LATEST_TWEET_TS_DICT[list_id] = tweets[0]["timestamp"]
if tweets[0]["timestamp"] > LATEST_TWEET_TS_DICT.get(list_id, 0):
LATEST_TWEET_TS_DICT[list_id] = tweets[0]["timestamp"]
return new_tweets

Loading…
Cancel
Save