Skip to content

Commit

Permalink
fix(list_input_extensions):
Browse files Browse the repository at this point in the history
fix geode_object key extractor
  • Loading branch information
JulienChampagnol committed Oct 2, 2023
1 parent 6ac2218 commit 5021d28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/opengeodeweb_back/geode_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def list_input_extensions(
Function that returns a list of all input extensions
Args:
keys -- Tells the function if we want the geode_objects that have a crs
geode_object -- The name of the geode_object
Returns:
An ordered list of input file extensions
"""
Expand All @@ -124,8 +123,9 @@ def list_input_extensions(
for geode_object, value in objects_list().items():
if keys:
for key in keys:
if key in geode_object:
if type(geode_object[key]) == bool and geode_object[key] == True:
if key in value.keys():
print(geode_object)
if type(value[key]) == bool and value[key] == True:
continue
else:
continue
Expand Down

0 comments on commit 5021d28

Please sign in to comment.