From 483c611beeedaee80abf2aea92b8886cdb11b3b5 Mon Sep 17 00:00:00 2001 From: Hey Moon Date: Sun, 8 May 2022 10:44:06 -0500 Subject: [PATCH] Add context --- autodrama.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/autodrama.py b/autodrama.py index d35dedc..111617f 100644 --- a/autodrama.py +++ b/autodrama.py @@ -1,8 +1,5 @@ TEST_MODE = True -from audioop import avg -from re import sub -from time import sleep from typing import Tuple from numpy import average import praw @@ -231,7 +228,7 @@ def generate_comment_display_section(submissions : 'Tuple[float, Submission]', s comment_body = comment_body.replace("\n", "") if len(comment_body) > max_len: comment_body = comment_body[0:max_len-3] + "..." - markdown_lines.append(f"{comment_indent} [{comment_body}](https://reddit.com{comment.permalink}) ({comment.score})") + markdown_lines.append(f"{comment_indent} [{comment_body}](https://reddit.com{comment.permalink}?context=3) ({comment.score})") return markdown_lines def comment_basedness_score_string(basedness):