mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
9f445a935f
commit
cb63edd9ff
2
utils.py
2
utils.py
|
@ -51,7 +51,7 @@ def get_attributed_to(field) -> str:
|
||||||
"""
|
"""
|
||||||
if isinstance(field, str):
|
if isinstance(field, str):
|
||||||
return field
|
return field
|
||||||
elif isinstance(field, list):
|
if isinstance(field, list):
|
||||||
for attrib in field:
|
for attrib in field:
|
||||||
if isinstance(attrib, dict):
|
if isinstance(attrib, dict):
|
||||||
if attrib.get('type') and attrib.get('id'):
|
if attrib.get('type') and attrib.get('id'):
|
||||||
|
|
Loading…
Reference in New Issue