From 200837c3361cc348bf744bda9d94d8eaa7e5db87 Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 3 Jun 2021 09:35:30 +0200 Subject: [PATCH] Improved logging message of cap limit --- twoot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/twoot.py b/twoot.py index ced0933..8c45545 100755 --- a/twoot.py +++ b/twoot.py @@ -513,13 +513,11 @@ def main(argv): # post each on Mastodon and record it in database # ********************************************************** - if cap != 0: - logging.info('# of toots to post capped to %d', cap) - posted_cnt = 0 for tweet in reversed(tweets): # Check if we have reached the cap on the number of toots to post if cap != 0 and posted_cnt >= cap: + logging.info('%d toots not posted due to configured cap', len(tweets) - cap) break logging.debug('Uploading Tweet %s', tweet["tweet_id"])