fix arg handlers and album versions route

This commit is contained in:
geoffrey45
2023-05-07 14:02:46 +03:00
parent be7fc26fce
commit 45bf7570a3
6 changed files with 15 additions and 11 deletions
+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