Add context

master
Hey Moon 2022-05-08 10:44:06 -05:00
parent bbe412b81c
commit 483c611bee
1 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,5 @@
TEST_MODE = True TEST_MODE = True
from audioop import avg
from re import sub
from time import sleep
from typing import Tuple from typing import Tuple
from numpy import average from numpy import average
import praw import praw
@ -231,7 +228,7 @@ def generate_comment_display_section(submissions : 'Tuple[float, Submission]', s
comment_body = comment_body.replace("\n", "") comment_body = comment_body.replace("\n", "")
if len(comment_body) > max_len: if len(comment_body) > max_len:
comment_body = comment_body[0:max_len-3] + "..." 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 return markdown_lines
def comment_basedness_score_string(basedness): def comment_basedness_score_string(basedness):