Shane 7 months ago
parent b77212d88f
commit c30fa1108d
  1. 2
      foodie_utils.py
  2. 2447
      temp_log.txt

@ -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")

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save