mirror of https://github.com/CIRCL/AIL-framework
fix: [objects] get_object, None pgp name
parent
a3eb285ce1
commit
3569498d5a
|
@ -72,6 +72,7 @@ def sanitize_objs_types(objs, default=False):
|
|||
def get_object(obj_type, subtype, obj_id):
|
||||
if subtype == 'None':
|
||||
subtype = None
|
||||
obj_id = str(obj_id)
|
||||
if not subtype:
|
||||
if obj_type == 'item':
|
||||
return Item(obj_id)
|
||||
|
|
Loading…
Reference in New Issue