Update original_filename (exclude Ext), add added_time

Update original_filename to exclude extension

Also, add added_time (24H) as another placeholder
This commit is contained in:
TTT7275 2023-12-14 16:17:07 +07:00 committed by GitHub
parent 11a0399d20
commit 98db1fbfcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(