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: