mirror of https://github.com/CIRCL/AIL-framework
fix: [objects] get_object, filter None string
parent
a595bb5175
commit
a3eb285ce1
|
@ -70,6 +70,8 @@ def sanitize_objs_types(objs, default=False):
|
||||||
#### OBJECT ####
|
#### OBJECT ####
|
||||||
|
|
||||||
def get_object(obj_type, subtype, obj_id):
|
def get_object(obj_type, subtype, obj_id):
|
||||||
|
if subtype == 'None':
|
||||||
|
subtype = None
|
||||||
if not subtype:
|
if not subtype:
|
||||||
if obj_type == 'item':
|
if obj_type == 'item':
|
||||||
return Item(obj_id)
|
return Item(obj_id)
|
||||||
|
|
Loading…
Reference in New Issue