Return verified UUIDs

event_exp
Raphaël Vinot 2016-11-21 10:46:03 +01:00
parent 2b88f22130
commit 3c121e1ce8
1 changed files with 2 additions and 3 deletions

View File

@ -26,9 +26,8 @@ def handler(q=False):
request = json.loads(q) # Assuming request has two keys: config & mispevent (mispevent being the json dump of the event)
mispevent = MISPEvent()
mispevent.load(request['mispevent'])
mispevent.verify(mispevent.Org['uuid'])
# TODO: what do we return there?
# return json.dumps(mispevent, cls=EncodeUpdate)
verified = mispevent.verify(mispevent.Org['uuid'])
return json.dumps(verified)
def introspection():