From e79606708b3b3a9d5640f2a5d4b02e0779d1b0b0 Mon Sep 17 00:00:00 2001 From: Watchful1 Date: Sun, 25 Aug 2024 18:36:49 -0700 Subject: [PATCH] Set comment sort --- src/stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats.py b/src/stats.py index 6bc0469..a39b9e7 100644 --- a/src/stats.py +++ b/src/stats.py @@ -43,6 +43,7 @@ def update_ask_historians(reddit, database, min_reminders=10, days_back=7): for stat in stats: reddit_submission = reddit.get_submission(stat.thread_id) + reddit_submission.comment_sort = "top" bldr.append(f"[{utils.truncate_string(reddit_submission.title, 60)}](https://www.reddit.com/{reddit_submission.permalink})|") bldr.append(f"{utils.get_datetime_string(utils.datetime_from_timestamp(reddit_submission.created_utc), '%Y-%m-%d %H:%M %Z')}|")