Fix: handle title placeholder for docs without original_filename (#5828)

This commit is contained in:
shamoon
2024-02-25 17:45:35 -08:00
committed by GitHub
parent db0a2eb1a3
commit 6bd5c34b54

View File

@@ -575,7 +575,11 @@ def run_workflow(
else "" else ""
), ),
timezone.localtime(document.added), timezone.localtime(document.added),
document.original_filename, (
document.original_filename
if document.original_filename is not None
else ""
),
timezone.localtime(document.created), timezone.localtime(document.created),
) )
except Exception: except Exception: