This commit is contained in:
2025-05-08 17:31:29 +10:00
parent ae194b502f
commit 82f4a1d8b1
7 changed files with 294 additions and 175 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ def main():
# Check if the author can post before generating the tweet
can_post, remaining, reset = check_author_rate_limit(author)
if not can_post:
reset_time = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(reset)) if reset else "Unknown"
reset_time = datetime.fromtimestamp(reset, tz=timezone.utc).strftime('%Y-%m-%d %H:%M:%S') if reset else "Unknown"
logging.info(f"Skipping engagement tweet for {author['username']} due to rate limit. Remaining: {remaining}, Reset at: {reset_time}")
continue