Skip to content

Commit

Permalink
fixed geometries endpoint 'gisAll'
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Oct 3, 2023
1 parent fd28bf6 commit ada7308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openatlas/api/resources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_geometries(parser: dict[str, Any]) -> list[dict[str, Any]]:
all_geoms = Gis.get_all()
out = []
for item in choices \
if parser['geometry'] == 'gisAll' else parser['geometry']:
if 'gisAll' in parser['geometry'] else parser['geometry']:
for geom in json.loads(all_geoms[item]):
out.append(geom)
return out
Expand Down

0 comments on commit ada7308

Please sign in to comment.