From 7b4dc082afdefa8e20afe88e63b628f2a2856a1c Mon Sep 17 00:00:00 2001 From: TTT7275 <126439983+TTT7275@users.noreply.github.com> Date: Mon, 18 Dec 2023 12:09:56 +0700 Subject: [PATCH] Change to .stem --- src/documents/consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/consumer.py b/src/documents/consumer.py index f82252132..6a0d1ec02 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -691,7 +691,7 @@ class Consumer(LoggingMixin): added_month_name_short=local_added.strftime("%b"), added_day=local_added.strftime("%d"), owner_username=owner_username, - original_filename=Path(self.filename).with_suffix("").name, + original_filename=Path(self.filename).stem, added_time=local_added.strftime("%H:%M"), ).strip()