Skip to content

Commit dbbe6a3

Browse files
committed
Fix python lint issues reported by black
1 parent 99113d2 commit dbbe6a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

api/issues_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,17 @@ def xml_issue(
4242
if res["elems"]:
4343
for e in res["elems"]:
4444
if e["type"] == "R":
45+
# fmt: off
4546
e["object_josm_url"] = (
4647
f"http://localhost:8111/import?url={remote_url_read}api/0.6/relation/{e['id']}/full"
4748
)
49+
# fmt: on
4850
else:
51+
# fmt: off
4952
e["object_josm_url"] = (
5053
f"http://localhost:8111/load_object?objects={e['type'].lower()}{e['id']}"
5154
)
55+
# fmt: on
5256

5357
map_url = (
5458
f"{website}/{lang}/map/"
@@ -363,7 +367,7 @@ def csv(
363367
lambda a: (
364368
usernames
365369
if a == "username"
366-
else elems if a == "elems" else res[a]
370+
else (elems if a == "elems" else res[a])
367371
),
368372
map(lambda y: hh.get(y, y), h),
369373
)

0 commit comments

Comments
 (0)