Skip to content

Commit

Permalink
Fix values in insert query
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Nov 4, 2024
1 parent ed79719 commit f21e3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lvmapi/tools/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ async def add_night_log_comment(
query = """
INSERT INTO {table_comment}
(night_log_pk, time, category, comment)
VALUES ({values});
VALUES (%s, %s, %s, %s);
"""
params = (night_log_pk, datetime.now(UTC), category, comment)
else:
Expand Down

0 comments on commit f21e3ef

Please sign in to comment.