From 98db1fbfcb0717ae30db2aeb4ba3eafae71cc14c Mon Sep 17 00:00:00 2001 From: TTT7275 <126439983+TTT7275@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:17:07 +0700 Subject: [PATCH] Update original_filename (exclude Ext), add added_time Update original_filename to exclude extension Also, add added_time (24H) as another placeholder --- src/documents/consumer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/documents/consumer.py b/src/documents/consumer.py index 14a98f2d0..f82252132 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -691,7 +691,8 @@ class Consumer(LoggingMixin): added_month_name_short=local_added.strftime("%b"), added_day=local_added.strftime("%d"), owner_username=owner_username, - original_filename=self.filename, + original_filename=Path(self.filename).with_suffix("").name, + added_time=local_added.strftime("%H:%M"), ).strip() def _store(