fix: Properly get the digest string

pull/14/head
Raphaël Vinot 2019-01-15 17:24:01 +01:00
parent 7b1eb10e6a
commit 4f390fc33e
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ def create_app(configfile=None):
else:
subject = 'URL Abuse report sent automatically'
msg = Message(subject, sender='urlabuse@circl.lu', recipients=["info@circl.lu"])
msg.body = data['digest']
msg.body = data['digest'][0]
msg.body += '\n\n'
msg.body += json.dumps(data['result'], sort_keys=True, indent=2)
mail.send(msg)