diff --git a/models/Habit.py b/models/Habit.py index 652eabb..044b83b 100644 --- a/models/Habit.py +++ b/models/Habit.py @@ -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