added extra info to print while in catch up
This commit is contained in:
+4
-2
@@ -96,14 +96,16 @@ async def process_queue() -> bool:
|
|||||||
errored = False
|
errored = False
|
||||||
|
|
||||||
queue = ttq.TalentTweetQueue.instance
|
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:
|
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:
|
try:
|
||||||
while len(queue.ttweets_dict) > 0:
|
while len(queue.ttweets_dict) > 0:
|
||||||
|
print(f'({ttweets_posted+1}/{queued_ttweets_count})')
|
||||||
key = list(queue.ttweets_dict.keys())[0]
|
key = list(queue.ttweets_dict.keys())[0]
|
||||||
ttweet = queue.ttweets_dict[key]
|
ttweet = queue.ttweets_dict[key]
|
||||||
queue.good = False
|
queue.good = False
|
||||||
|
|||||||
Reference in New Issue
Block a user