From 45f39745147faa50366a2f1eec54ae91a7f36600 Mon Sep 17 00:00:00 2001 From: janphilippweinsheimer Date: Tue, 5 Mar 2024 10:05:38 +0100 Subject: [PATCH] fixed yassins wrongdoing --- db/SQLiteClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/SQLiteClient.py b/db/SQLiteClient.py index d9b811c..efb9bb9 100644 --- a/db/SQLiteClient.py +++ b/db/SQLiteClient.py @@ -190,7 +190,7 @@ def update_slot(id: int, slot: int): def update_habit(id: int, name: str, note: str, times: int, unit: int): now = datetime.now().isoformat() - query = (f"UPDATE habits SET name = {name}, note = {note}, times = {times}, unit = {unit}, updated_at = '{now}' " + query = (f"UPDATE habits SET name = '{name}', note = '{note}', times = {times}, unit = {unit}, updated_at = '{now}' " f"WHERE id = {id};") conn = con3() cursor = conn.cursor()