fix bug: latest tweet timestamp check

master
wlt233 2 weeks ago
parent b31f49a1d7
commit c8ae58e1e0

@ -21,7 +21,7 @@ def check_new_tweets(tweets, list_id):
if list_id in LATEST_TWEET_ID_DICT:
for tweet in tweets:
if tweet["rest_id"] == LATEST_TWEET_ID_DICT[list_id]: break
if tweet["timestamp"] < LATEST_TWEET_TS_DICT[list_id]: break
if tweet["timestamp"] <= LATEST_TWEET_TS_DICT[list_id]: break
# if time.time() - tweet["timestamp"] > 1200: break
new_tweets.append(tweet)

Loading…
Cancel
Save