mirror of https://github.com/MISP/misp-dashboard
fix: [dispatcher] EventTags were not processed correctly
parent
1e91b9b59c
commit
8a90dffb65
|
@ -167,11 +167,8 @@ def handler_event(zmq_name, jsonobj):
|
||||||
timestamp = jsonevent['timestamp']
|
timestamp = jsonevent['timestamp']
|
||||||
trendings_helper.addTrendingEvent(eventName, timestamp)
|
trendings_helper.addTrendingEvent(eventName, timestamp)
|
||||||
tags = []
|
tags = []
|
||||||
for tag in jsonobj.get('EventTag', []):
|
for tag in jsonevent.get('Tag', []):
|
||||||
try:
|
tags.append(tag)
|
||||||
tags.append(tag['Tag'])
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
trendings_helper.addTrendingTags(tags, timestamp)
|
trendings_helper.addTrendingTags(tags, timestamp)
|
||||||
|
|
||||||
#redirect to handler_attribute
|
#redirect to handler_attribute
|
||||||
|
@ -208,10 +205,7 @@ def handler_attribute(zmq_name, jsonobj, hasAlreadyBeenContributed=False):
|
||||||
trendings_helper.addTrendingCateg(categName, timestamp)
|
trendings_helper.addTrendingCateg(categName, timestamp)
|
||||||
tags = []
|
tags = []
|
||||||
for tag in jsonattr.get('Tag', []):
|
for tag in jsonattr.get('Tag', []):
|
||||||
try:
|
tags.append(tag)
|
||||||
tags.append(tag)
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
trendings_helper.addTrendingTags(tags, timestamp)
|
trendings_helper.addTrendingTags(tags, timestamp)
|
||||||
|
|
||||||
to_push = []
|
to_push = []
|
||||||
|
|
Loading…
Reference in New Issue