mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 01:31:41 +02:00
Merge pull request #72 from PhoenixTwoFive/71-fix-code-scanning-alert-clear-text-logging-of-sensitive-information
Remove Logging
This commit is contained in:
@ -154,6 +154,7 @@ def get_songs_with_details(input_string: str):
|
|||||||
stmt, {"prepared_string": prepared_string})
|
stmt, {"prepared_string": prepared_string})
|
||||||
return cur.fetchall()
|
return cur.fetchall()
|
||||||
|
|
||||||
|
|
||||||
def get_song_details(song_id: int):
|
def get_song_details(song_id: int):
|
||||||
with get_db_engine().connect() as conn:
|
with get_db_engine().connect() as conn:
|
||||||
stmt = text(
|
stmt = text(
|
||||||
@ -166,6 +167,7 @@ def get_song_details(song_id: int):
|
|||||||
stmt, {"song_id": song_id})
|
stmt, {"song_id": song_id})
|
||||||
return cur.fetchall()
|
return cur.fetchall()
|
||||||
|
|
||||||
|
|
||||||
def add_entry(name, song_id, client_id):
|
def add_entry(name, song_id, client_id):
|
||||||
with get_db_engine().connect() as conn:
|
with get_db_engine().connect() as conn:
|
||||||
stmt = text(
|
stmt = text(
|
||||||
@ -285,7 +287,6 @@ def get_config(key: str) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def set_config(key: str, value: str) -> bool:
|
def set_config(key: str, value: str) -> bool:
|
||||||
print(f"Setting config {key} to {value}")
|
|
||||||
with get_db_engine().connect() as conn:
|
with get_db_engine().connect() as conn:
|
||||||
conn.execute(text(
|
conn.execute(text(
|
||||||
"INSERT INTO config (`Key`, `Value`) VALUES ( :par_key , :par_value) ON DUPLICATE KEY UPDATE `Value`= :par_value"),
|
"INSERT INTO config (`Key`, `Value`) VALUES ( :par_key , :par_value) ON DUPLICATE KEY UPDATE `Value`= :par_value"),
|
||||||
|
Reference in New Issue
Block a user