try
This commit is contained in:
+1
-1
@@ -254,7 +254,7 @@ def post_tweet(author, content, media_ids=None, reply_to_id=None, tweet_type="rs
|
|||||||
reset = int(reset_str)
|
reset = int(reset_str)
|
||||||
author_info['tweet_remaining'] = remaining
|
author_info['tweet_remaining'] = remaining
|
||||||
author_info['tweet_reset'] = reset
|
author_info['tweet_reset'] = reset
|
||||||
# Don't reset tweets_posted_in_run here
|
author_info['tweets_posted_in_run'] = 0 # Reset the counter when rate limit is hit
|
||||||
rate_limit_info[username] = author_info
|
rate_limit_info[username] = author_info
|
||||||
save_json_file(rate_limit_file, rate_limit_info)
|
save_json_file(rate_limit_file, rate_limit_info)
|
||||||
logger.info(f"Updated rate limit info from API for {username}: {remaining}/17 tweets remaining")
|
logger.info(f"Updated rate limit info from API for {username}: {remaining}/17 tweets remaining")
|
||||||
|
|||||||
+492
-1955
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user