Skip to content

Commit 64ac66f

Browse files
authored
Update api_calls.py
1 parent d4f21cd commit 64ac66f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mapswipe_workers/mapswipe_workers/utils/api_calls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ def remove_noise_and_add_user_info(json: dict) -> dict:
165165
for feature in json["features"]:
166166
changeset = changeset_results[int(feature["properties"]["changesetId"])]
167167
for attribute_name in ["username", "comment", "editor", "userid"]:
168-
feature["properties"][attribute_name] = changeset[attribute_name]
168+
if attribute_name == "userid":
169+
feature["properties"][attribute_name] = int(changeset[attribute_name])
170+
else:
171+
feature["properties"][attribute_name] = changeset[attribute_name]
169172

170173
logger.info("finished filtering and adding extra info")
171174
if any(x > 0 for x in missing_rows.values()):

0 commit comments

Comments
 (0)