mirror of https://github.com/MISP/misp-modules
chg: [internal] Optimise clamav to avoid JSON decoding/encoding
parent
cbaa2f85a2
commit
57e04d6b6c
|
@ -43,7 +43,7 @@ def create_response(original_attribute: dict, software: str, signature: Optional
|
|||
av_signature_object.add_reference(original_attribute["uuid"], "belongs-to")
|
||||
misp_event.add_object(av_signature_object)
|
||||
|
||||
event = json.loads(misp_event.to_json())
|
||||
event = misp_event.to_dict()
|
||||
results = {key: event[key] for key in ('Attribute', 'Object') if (key in event and event[key])}
|
||||
return {"results": results}
|
||||
|
||||
|
|
Loading…
Reference in New Issue