fixed the link formatting br was included

This commit is contained in:
2018-10-22 18:38:35 +02:00
parent 86ad36a263
commit 89d04ff99b

View File

@@ -60,7 +60,7 @@ class Informer(object):
text = news.content
for attachment in news.attachments:
fid, fname = attachment.localpath.split('/')
text += '''<br>Attachment {0}: https://files.hyttioaoa.de/{1}<br>'''.format(fname, attachment.localpath)
text += '''<br>Attachment {0}: https://files.hyttioaoa.de/{1} <br>'''.format(fname, attachment.localpath)
parsed_date = dateparser.parse(news.date)
now = datetime.datetime.now()
parsed_date += datetime.timedelta(hours=now.hour, minutes=now.minute)