Skip to content

Commit b33e2c1

Browse files
committed
just stylin
1 parent 2303dcd commit b33e2c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mapswipe_workers/mapswipe_workers/utils/api_calls.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ def chunks(arr, n_objects):
5151

5252
def query_osm(changeset_ids: list, changeset_results):
5353
"""Get data from changesetId."""
54-
id_string = ""
55-
for id in changeset_ids:
56-
id_string += f"{id},"
57-
58-
id_string = id_string[:-1]
54+
id_string = ",".join(map(str, changeset_ids))
5955

6056
url = OSM_API_LINK + f"changesets?changesets={id_string}"
6157
response = retry_get(url)

0 commit comments

Comments
 (0)