mirror of https://github.com/CIRCL/url-abuse
fix: Properly get the digest string
parent
7b1eb10e6a
commit
4f390fc33e
|
@ -311,7 +311,7 @@ def create_app(configfile=None):
|
||||||
else:
|
else:
|
||||||
subject = 'URL Abuse report sent automatically'
|
subject = 'URL Abuse report sent automatically'
|
||||||
msg = Message(subject, sender='urlabuse@circl.lu', recipients=["info@circl.lu"])
|
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 += '\n\n'
|
||||||
msg.body += json.dumps(data['result'], sort_keys=True, indent=2)
|
msg.body += json.dumps(data['result'], sort_keys=True, indent=2)
|
||||||
mail.send(msg)
|
mail.send(msg)
|
||||||
|
|
Loading…
Reference in New Issue