From ea9037e9e7af38b9e5f7c11812e475f84d9fb351 Mon Sep 17 00:00:00 2001 From: bvn13 Date: Fri, 1 Nov 2024 23:46:57 +0300 Subject: [PATCH] communication over rabbitmq --- src/web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/server.py b/src/web/server.py index 5880af0..80ca88e 100644 --- a/src/web/server.py +++ b/src/web/server.py @@ -39,7 +39,7 @@ def start(port: int, token: str, fucking_path: str, backup_path: str, rabbitmq: @tornado.gen.coroutine def post(self): req = json.loads(self.request.body) - if not 'decision' in req or not 'text' in req: + if not 'is_spam' in req or not 'text' in req: self.set_status(400) self.write(_json({ 'status': 'fail', 'message': 'wrong format' })) else: