From 2a8d06a373cdb29d6009976cddb88033795c58ad Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 8 Oct 2025 10:11:53 +0200 Subject: [PATCH] Fixed decoding files to return strings instead of bytes and properly called the function --- src/db.py | 2 +- src/secret_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.py b/src/db.py index ee5fe06..37650ec 100644 --- a/src/db.py +++ b/src/db.py @@ -48,7 +48,7 @@ def get_connection_pool(): global _connection_pool with _pool_lock: if _connection_pool is None: - create_connection_pool + create_connection_pool() return _connection_pool def get_db(): diff --git a/src/secret_handler.py b/src/secret_handler.py index 653f9ee..f7e7dd7 100644 --- a/src/secret_handler.py +++ b/src/secret_handler.py @@ -13,4 +13,4 @@ def decrypt_token(token:str)->str: def return_credentials(path: str)->str: with open (path) as file: - return file.read() + return file.read().strip()