Merge pull request #72 from PhoenixTwoFive/71-fix-code-scanning-alert-clear-text-logging-of-sensitive-information

Remove Logging
This commit is contained in:
Phillip Kühne
2023-10-03 19:51:06 +02:00
committed by GitHub

View File

@ -154,6 +154,7 @@ def get_songs_with_details(input_string: str):
stmt, {"prepared_string": prepared_string})
return cur.fetchall()
def get_song_details(song_id: int):
with get_db_engine().connect() as conn:
stmt = text(
@ -166,6 +167,7 @@ def get_song_details(song_id: int):
stmt, {"song_id": song_id})
return cur.fetchall()
def add_entry(name, song_id, client_id):
with get_db_engine().connect() as conn:
stmt = text(
@ -285,7 +287,6 @@ def get_config(key: str) -> str:
def set_config(key: str, value: str) -> bool:
print(f"Setting config {key} to {value}")
with get_db_engine().connect() as conn:
conn.execute(text(
"INSERT INTO config (`Key`, `Value`) VALUES ( :par_key , :par_value) ON DUPLICATE KEY UPDATE `Value`= :par_value"),