Fixed create_habit method

This commit is contained in:
Verox001 2024-01-23 10:50:28 +01:00
parent f0f1b38eb0
commit 75e2ddf51f

View File

@ -21,7 +21,7 @@ class Habit:
@staticmethod
def create(user_id: int, name: str, times: int, note: str | None = None, unit: int | None = 1):
slot = get_next_slot()
id = create_habit(name, user_id, times, unit, slot, note)
id = create_habit(user_id, name, times, unit, slot, note)
return Habit(id, user_id, name, note, times, unit, slot)
@staticmethod