From f980ab514527861dfb30e2fa266518f4046a8fe2 Mon Sep 17 00:00:00 2001 From: terrtia Date: Wed, 21 Feb 2024 14:56:11 +0100 Subject: [PATCH] fix: [favicon] fix misp object export --- bin/lib/objects/ail_objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lib/objects/ail_objects.py b/bin/lib/objects/ail_objects.py index 15717c78..cb1fa1cc 100755 --- a/bin/lib/objects/ail_objects.py +++ b/bin/lib/objects/ail_objects.py @@ -108,7 +108,7 @@ def get_objects(objects): obj_subtype = obj['subtype'] obj_id = obj['id'] 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) else: 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()): 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 def obj_correlations_objs_add_tags(obj_type, subtype, obj_id, tags, filter_types=[], lvl=0, nb_max=300, objs_hidden=set()):