Fix last month of year

This commit is contained in:
Watchful1 2024-01-07 10:45:51 -08:00
parent 82966bf7f6
commit 6114afb53f
3 changed files with 8 additions and 7 deletions

View file

@ -8,8 +8,8 @@ log = discord_logging.init_logging()
if __name__ == "__main__":
day = None
day_comments = 0
for comment in utils.read_obj_zst(r"\\MYCLOUDPR4100\Public\reddit_final\wallstreetbets_comments.zst"):
created_day = datetime.utcfromtimestamp(int(comment['created_utc'])).strftime("%m/%d/%y")
for comment in utils.read_obj_zst(r"C:\Users\greg\Desktop\Drive\pushshift\haley0530\chatbots_submissions.zst"):
created_day = datetime.utcfromtimestamp(int(comment['created_utc'])).strftime("%y-%m-%d")
if day is None:
day = created_day
if day != created_day: