We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f21cd commit 64ac66fCopy full SHA for 64ac66f
mapswipe_workers/mapswipe_workers/utils/api_calls.py
@@ -165,7 +165,10 @@ def remove_noise_and_add_user_info(json: dict) -> dict:
165
for feature in json["features"]:
166
changeset = changeset_results[int(feature["properties"]["changesetId"])]
167
for attribute_name in ["username", "comment", "editor", "userid"]:
168
- feature["properties"][attribute_name] = changeset[attribute_name]
+ if attribute_name == "userid":
169
+ feature["properties"][attribute_name] = int(changeset[attribute_name])
170
+ else:
171
+ feature["properties"][attribute_name] = changeset[attribute_name]
172
173
logger.info("finished filtering and adding extra info")
174
if any(x > 0 for x in missing_rows.values()):
0 commit comments