Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Fix polygon difference result saving
Browse files Browse the repository at this point in the history
  • Loading branch information
nihar1024 committed Feb 8, 2024
1 parent 7bde44c commit 88652e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crud/crud_isochrone.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ async def save_result(

if obj_in.isochrone_type == "polygon":
# Save isochrone geometry data (shapes)
shapes = shapes["incremental"]
shapes = (
shapes["incremental"] if obj_in.polygon_difference else shapes["full"]
)
insert_string = ""
for i in shapes.index:
geom = shapes["geometry"][i]
Expand Down

0 comments on commit 88652e8

Please sign in to comment.