Change to .stem

This commit is contained in:
TTT7275 2023-12-18 12:09:56 +07:00 committed by GitHub
parent 98db1fbfcb
commit 7b4dc082af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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