Refer to this as link instead of shortlink specifically.

Stay tuned to see why!
master
Ethan Dalool 2020-01-05 20:25:35 -08:00
parent ceb66c772a
commit 15009a3409
1 changed files with 3 additions and 3 deletions

View File

@ -7,11 +7,11 @@ from . import tsdb
LINE_FORMAT_TXT = ''' LINE_FORMAT_TXT = '''
{timestamp}: [{title}]({shortlink}) - /u/{author} (+{score}) {timestamp}: [{title}]({link}) - /u/{author} (+{score})
'''.replace('\n', '') '''.replace('\n', '')
LINE_FORMAT_HTML = ''' LINE_FORMAT_HTML = '''
<div>{timestamp}: <a href=\"{shortlink}\">[{flairtext}] {title}</a> - <a href=\"{authorlink}\">{author}</a> (+{score})</div> <div>{timestamp}: <a href="{link}">[{flairtext}] {title}</a> - <a href="{authorlink}">{author}</a> (+{score})</div>
'''.replace('\n', '') '''.replace('\n', '')
TIMESTAMP_FORMAT = '%Y %b %d' TIMESTAMP_FORMAT = '%Y %b %d'
@ -144,7 +144,7 @@ def redmash_worker(
id=item[tsdb.SQL_SUBMISSION['idstr']], id=item[tsdb.SQL_SUBMISSION['idstr']],
numcomments=item[tsdb.SQL_SUBMISSION['num_comments']], numcomments=item[tsdb.SQL_SUBMISSION['num_comments']],
score=item[tsdb.SQL_SUBMISSION['score']], score=item[tsdb.SQL_SUBMISSION['score']],
shortlink=short_link, link=short_link,
subreddit=item[tsdb.SQL_SUBMISSION['subreddit']], subreddit=item[tsdb.SQL_SUBMISSION['subreddit']],
timestamp=timestamp, timestamp=timestamp,
title=item[tsdb.SQL_SUBMISSION['title']].replace('\n', ' '), title=item[tsdb.SQL_SUBMISSION['title']].replace('\n', ' '),