diff --git a/foodie_engagement_tweet.py b/foodie_engagement_tweet.py index 6e52604..7490cb9 100644 --- a/foodie_engagement_tweet.py +++ b/foodie_engagement_tweet.py @@ -231,7 +231,7 @@ def post_engagement_tweet(): try: print("Checking rate limit") - if not check_author_rate_limit(author['username']): + if not check_author_rate_limit(author): # Pass the full author dictionary print(f"Rate limit exceeded for {author['username']}") logging.info(f"Rate limit exceeded for {author['username']}") sleep_time = 86400 # 1 day