From 435de2ec92d86e50f03a86e8e81a6169ee4342e0 Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Sun, 15 Jun 2025 05:31:42 +0200 Subject: [PATCH] fix handling of id --- kontor-api/src/core/config.py | 2 +- kontor-scripts/download.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kontor-api/src/core/config.py b/kontor-api/src/core/config.py index 81b5fa0..1a2036a 100644 --- a/kontor-api/src/core/config.py +++ b/kontor-api/src/core/config.py @@ -19,7 +19,7 @@ class Settings: DATABASE_URL: str = f"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_SERVER}:{DB_PORT}/{DB_DBNAME}" SECRET_KEY: str = os.getenv("SECRET_KEY", "J6GOtcwC2NJI1l0VkHu20PacPFGTxpirBxWwynoHjsc=") ALGORITHM = "HS256" - ACCESS_TOKEN_EXPIRE_MINUTES = 30 # in mins + ACCESS_TOKEN_EXPIRE_MINUTES = 600 # in mins settings = Settings() diff --git a/kontor-scripts/download.py b/kontor-scripts/download.py index cafe201..d23c328 100644 --- a/kontor-scripts/download.py +++ b/kontor-scripts/download.py @@ -72,7 +72,7 @@ def is_file_downloaded(media_file: dict, dir: Path) -> FileStatus: file_with_id_as_name = Path(dir, f"{file_name_as_id}.mp4") if file_with_id_as_name.exists(): log.info(f"{file_with_id_as_name} has been downloaded and renamed") - media_file['cloud_link'] = file_with_id_as_name + media_file['cloud_link'] = str(file_with_id_as_name) media_file['should_download'] = False return FileStatus.RENAMED log.info("could not find file - start download")