Skip to content

Commit e78b77d

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

api/issues.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class NLJSONResponse(Response):
4646
media_type = "application/x-ndjson; charset=utf-8"
4747

4848
def render(self, content: Any) -> bytes:
49-
return ("\x1E" + "\n\x1E".join([json.dumps(line) for line in content])).encode(
49+
return ("\x1e" + "\n\x1e".join([json.dumps(line) for line in content])).encode(
5050
"utf-8"
5151
)
5252

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)