From 68bd73909eab66453e7f3ce4d54f01c1463a93ab Mon Sep 17 00:00:00 2001 From: msk <15199219+muskit@users.noreply.github.com> Date: Thu, 29 Sep 2022 01:20:42 -0700 Subject: [PATCH] added extra info to print while in catch up --- src/catchup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/catchup.py b/src/catchup.py index 8a4e5ac..accc341 100644 --- a/src/catchup.py +++ b/src/catchup.py @@ -96,14 +96,16 @@ async def process_queue() -> bool: errored = False queue = ttq.TalentTweetQueue.instance + queued_ttweets_count = len(queue.ttweets_dict) - if len(queue.ttweets_dict) == 0: return ttweets_posted + if len(queued_ttweets_count) == 0: return ttweets_posted if PROGRAM_ARGS.announce_catchup: - TwAPI.instance.post_tweet(text=f'Starting to catch up through {len(queue.ttweets_dict)} logged tweets.') + TwAPI.instance.post_tweet(text=f'Starting to catch up through {queued_ttweets_count} logged tweets.') try: while len(queue.ttweets_dict) > 0: + print(f'({ttweets_posted+1}/{queued_ttweets_count})') key = list(queue.ttweets_dict.keys())[0] ttweet = queue.ttweets_dict[key] queue.good = False