Skip to content
Snippets Groups Projects
Verified Commit 87fc9f32 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch 'master' of edugit.org:BiscuIT/BiscuIT-ng

parents a2792d7d d34aca6f
No related branches found
No related tags found
No related merge requests found
Pipeline #218 failed
Subproject commit db488728dce004beebd5b266e406b80a4860505a
Subproject commit ddf4910f34c3c5063f0e4eb2ca05a03e14dffb63
......@@ -11,7 +11,7 @@ def get_dict(value: Any, arg: Any) -> Any:
if hasattr(value, str(arg)):
return getattr(value, arg)
elif hasattr(value, 'has_key') and value.has_key(arg):
elif hasattr(value, 'keys') and arg in value.keys():
return value[arg]
elif str(arg).isnumeric() and len(value) > int(arg):
return value[int(arg)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment