fix arg handlers and album versions route

This commit is contained in:
geoffrey45 committed 2023-05-07 14:02:46 +03:00
1 parent be7fc26fce
commit 45bf7570a3
6 files changed
+15 -11

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ def extract_thumb(filepath: str, webp_path: str) -> bool:
return False
def extract_date(date_str: str | None) -> int:
def extract_date(date_str: str | None, filepath: str) -> int:
try:
return int(date_str.split("-")[0])
except: # pylint: disable=bare-except