Fixed decoding files to return strings instead of bytes and properly called the function
This commit is contained in:
parent
fc878e9d8f
commit
2a8d06a373
@ -48,7 +48,7 @@ def get_connection_pool():
|
|||||||
global _connection_pool
|
global _connection_pool
|
||||||
with _pool_lock:
|
with _pool_lock:
|
||||||
if _connection_pool is None:
|
if _connection_pool is None:
|
||||||
create_connection_pool
|
create_connection_pool()
|
||||||
return _connection_pool
|
return _connection_pool
|
||||||
|
|
||||||
def get_db():
|
def get_db():
|
||||||
|
|||||||
@ -13,4 +13,4 @@ def decrypt_token(token:str)->str:
|
|||||||
|
|
||||||
def return_credentials(path: str)->str:
|
def return_credentials(path: str)->str:
|
||||||
with open (path) as file:
|
with open (path) as file:
|
||||||
return file.read()
|
return file.read().strip()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user