communication over rabbitmq
This commit is contained in:
parent
6c97e0c3f6
commit
ea9037e9e7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user