From fbb58c352896f2176b97f3312ec72ffff7337aeb Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Fri, 18 Aug 2023 02:12:29 -0700 Subject: [PATCH] remove fallback fetch date if catchup errors --- src/catchup.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/catchup.py b/src/catchup.py index 3f42c14..79f5d5a 100644 --- a/src/catchup.py +++ b/src/catchup.py @@ -34,7 +34,6 @@ async def get_cross_tweets_online(): for i, (talent_id, talent_username) in enumerate(talent_lists.talents.items()): print(f'[{i+1}/{len(talent_lists.talents)}] {talent_username}-----------------------------------') try: - # tweets = get_user_tweets(talent_id, since_date=queue.finished_user_dates.get(talent_id, None)) since_date = queue.finished_user_dates.get(talent_id, None) ttweets = scraper.get_cross_ttweets_from_user(talent_username, since_date=since_date) print(f'got {len(ttweets)} TalentTweets') @@ -48,8 +47,6 @@ async def get_cross_tweets_online(): print('Error occurred processing tweet data.') safe_to_post_tweets = False traceback.print_exc() - if talent_id not in queue.finished_user_dates: - queue.finished_user_dates[talent_id] = '2023-04-26' # date is when bot token first got revoked else: queue.finished_user_dates[talent_id] = util.get_current_date() queue.save_file()