Fixed decoding files to return strings instead of bytes and properly called the function

This commit is contained in:
florian 2025-10-08 10:11:53 +02:00
parent fc878e9d8f
commit 2a8d06a373
2 changed files with 2 additions and 2 deletions

View File

@ -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():

View File

@ -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()