From ecba2fb59549617e413a4c25d1c75151140741a5 Mon Sep 17 00:00:00 2001 From: maike Date: Sun, 12 Jul 2020 16:49:22 +0200 Subject: [PATCH] [email] Pass message in json instead of data --- kibicara/kibicara_mda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibicara/kibicara_mda.py b/kibicara/kibicara_mda.py index 5e0dd9f..6e18a3d 100644 --- a/kibicara/kibicara_mda.py +++ b/kibicara/kibicara_mda.py @@ -48,5 +48,5 @@ async def main(): 'secret': email_row.secret, } 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 )