Skip to content

Commit

Permalink
Update database_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
j54j6 committed Jun 8, 2024
1 parent 5c7323a commit 6b588ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def delete_value(table:str, conditions: dict|list, delete_all_content=False):
conditions_part = conditions_part[:-4]
query = query + conditions_part
else:
query = f"TRUNCATE TABLE {table}"
query = f"DELETE FROM {table}"
try:
cursor = ENGINE.cursor()
cursor.execute(query)
Expand Down

0 comments on commit 6b588ca

Please sign in to comment.