Skip to content

Commit

Permalink
Set comment sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Watchful1 committed Aug 26, 2024
1 parent d546c4f commit e796067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')}|")

Expand Down

0 comments on commit e796067

Please sign in to comment.