about summary refs log tree commit diff
path: root/uploader/__init__.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-19 12:53:20 -0600
committerFrederick Muriuki Muriithi2025-12-19 12:53:20 -0600
commit56ed0f57b816b1023a97b7205268deed0a45c77e (patch)
tree29bad7b0b2ff78230d80b5c5ec76eb2822b8d84b /uploader/__init__.py
parentd04b7cb89b3fbaa1689f8f6525a2740eda7c3be3 (diff)
downloadgn-uploader-56ed0f57b816b1023a97b7205268deed0a45c77e.tar.gz
Fix issues caught by type-checker.
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r--uploader/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py
index 7425b38..0ba1f81 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -11,7 +11,7 @@ from cachelib import FileSystemCache
 
 from gn_libs import jobs as gnlibs_jobs
 
-from flask_session import Session
+from flask_session import Session# type: ignore[attr-defined]
 
 
 from uploader.oauth2.client import user_logged_in, authserver_authorise_uri
@@ -103,7 +103,7 @@ def create_app(config: Optional[dict] = None):
     ### END: Application configuration
 
     app.config["SESSION_CACHELIB"] = FileSystemCache(
-        cache_dir=Path(app.config["SESSION_FILESYSTEM_CACHE_PATH"]).absolute(),
+        cache_dir=str(Path(app.config["SESSION_FILESYSTEM_CACHE_PATH"]).absolute()),
         threshold=int(app.config["SESSION_FILESYSTEM_CACHE_THRESHOLD"]),
         default_timeout=int(app.config["SESSION_FILESYSTEM_CACHE_TIMEOUT"]))