mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [objects] get_object, None pgp name
This commit is contained in:
parent
a3eb285ce1
commit
3569498d5a
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ def sanitize_objs_types(objs, default=False):
|
||||||
def get_object(obj_type, subtype, obj_id):
|
def get_object(obj_type, subtype, obj_id):
|
||||||
if subtype == 'None':
|
if subtype == 'None':
|
||||||
subtype = None
|
subtype = None
|
||||||
|
obj_id = str(obj_id)
|
||||||
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 a new issue