Skip to content

Commit 4d7701d

Browse files
committed
black
1 parent 50be433 commit 4d7701d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/iosanita/contenttypes/browser/export_view.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,14 @@ def pdf_cell_format(self, column, value):
265265
if isinstance(value, dict):
266266
# e.g. {'token': 'in_corso', 'title': 'In corso'}
267267
return {"type": "str", "value": value.get("title")}
268-
if isinstance(value, list):
268+
if isinstance(value, list):
269269
if not value:
270270
return {"type": "str", "value": ""}
271271
elif isinstance(value[0], dict):
272-
return {"type": "str", "value": ", ".join([v.get("title", str(v)) for v in value])}
272+
return {
273+
"type": "str",
274+
"value": ", ".join([v.get("title", str(v)) for v in value]),
275+
}
273276
# XXX: this is a guess
274277
if isinstance(value, str):
275278
if value.startswith("https://"):

0 commit comments

Comments
 (0)