[email] Pass message in json instead of data

This commit is contained in:
maike 2020-07-12 16:49:22 +02:00 committed by dl6tom
parent 8211a29ebd
commit ecba2fb595

View file

@ -48,5 +48,5 @@ async def main():
'secret': email_row.secret, 'secret': email_row.secret,
} }
requests.post( requests.post(
'http://localhost:8000/api/hoods/%d/email/messages/' % (hood.id), data=body 'http://localhost:8000/api/hoods/%d/email/messages/' % (hood.id), json=body
) )