Skip to content

Commit 7ad404a

Browse files
committed
doc
1 parent deb1f68 commit 7ad404a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/iosanita/contenttypes/browser/export_view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ def pdf_cell_format(self, column, value):
197197
# XXX: this is a guess
198198
if value.startswith("https://"):
199199
return {"type": "url", "url": value, "value": column["title"]}
200+
# XXX: this is a guess
200201
# 2025-05-21T00:00:00 -> isoformat date YYYY-MM-DD
201202
if re.match(r"^\d{4}-\d{2}-\d{2}T00:00:00$", value):
202-
value = value.split("T")[0]
203+
return {"type": "str", "value": value.split("T")[0]}
203204
return {"type": "str", "value": str(value)}

0 commit comments

Comments
 (0)