mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [favicon] fix misp object export
This commit is contained in:
parent
81c4dde7b0
commit
f980ab5145
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ def get_objects(objects):
|
||||||
obj_subtype = obj['subtype']
|
obj_subtype = obj['subtype']
|
||||||
obj_id = obj['id']
|
obj_id = obj['id']
|
||||||
if 'lvl' in obj:
|
if 'lvl' in obj:
|
||||||
correl_objs = get_obj_correlations_objs(obj_type, obj_subtype, obj_id, lvl=obj['lvl'])
|
correl_objs = get_obj_correlations_objs(obj_type, obj_subtype, obj_id, lvl=int(obj['lvl']))
|
||||||
objs = objs.union(correl_objs)
|
objs = objs.union(correl_objs)
|
||||||
else:
|
else:
|
||||||
obj_type, obj_subtype, obj_id = obj
|
obj_type, obj_subtype, obj_id = obj
|
||||||
|
@ -387,7 +387,7 @@ def _get_obj_correlations_objs(objs, obj_type, subtype, obj_id, filter_types, lv
|
||||||
|
|
||||||
def get_obj_correlations_objs(obj_type, subtype, obj_id, filter_types=[], lvl=0, nb_max=300, objs_hidden=set()):
|
def get_obj_correlations_objs(obj_type, subtype, obj_id, filter_types=[], lvl=0, nb_max=300, objs_hidden=set()):
|
||||||
objs = set()
|
objs = set()
|
||||||
_get_obj_correlations_objs(objs, obj_type, subtype, obj_id, filter_types, lvl, nb_max, objs_hidden)
|
_get_obj_correlations_objs(objs, obj_type, subtype, obj_id, filter_types, int(lvl), nb_max, objs_hidden)
|
||||||
return objs
|
return objs
|
||||||
|
|
||||||
def obj_correlations_objs_add_tags(obj_type, subtype, obj_id, tags, filter_types=[], lvl=0, nb_max=300, objs_hidden=set()):
|
def obj_correlations_objs_add_tags(obj_type, subtype, obj_id, tags, filter_types=[], lvl=0, nb_max=300, objs_hidden=set()):
|
||||||
|
|
Loading…
Reference in a new issue