mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [objects] get_object, filter None string
This commit is contained in:
parent
a595bb5175
commit
a3eb285ce1
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ def sanitize_objs_types(objs, default=False):
|
|||
#### OBJECT ####
|
||||
|
||||
def get_object(obj_type, subtype, obj_id):
|
||||
if subtype == 'None':
|
||||
subtype = None
|
||||
if not subtype:
|
||||
if obj_type == 'item':
|
||||
return Item(obj_id)
|
||||
|
|
Loading…
Reference in a new issue