This commit is contained in:
Yapollon 2024-01-23 10:51:14 +01:00
commit a6b2f03d78

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