Skip to content

Commit

Permalink
minor optimize in featureid assignment, re #10787
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed May 2, 2024
1 parent 57d6742 commit 56b61de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arches/app/datatypes/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,7 @@ def transform_value_for_tile(self, value, **kwargs):
geojson = json.loads(value)
if geojson["type"] == "FeatureCollection":
for feature in geojson["features"]:
feature_id = feature.get("id", None)
if not feature_id:
feature["id"] = str(uuid.uuid4())
feature["id"] = feature.get("id", str(uuid.uuid4()))
arches_geojson = geojson
else:
raise TypeError
Expand Down

0 comments on commit 56b61de

Please sign in to comment.