Fixed create_habit method
This commit is contained in:
parent
f0f1b38eb0
commit
75e2ddf51f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user