Skip to content

Commit a842db8

Browse files
committed
Add another type hint
1 parent 966677e commit a842db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def add_task() -> Response: # add the task to the task list
203203
def complete_task(task_id) -> Response: # complete task from task id
204204
task = Task.query.get(task_id) # get task by task id
205205
if task:
206-
due_multiplier = 1.0 # set default due multiplier to 1
206+
due_multiplier: float = 1.0 # set default due multiplier to 1
207207
if task.repeat_often == 5: # if the task is a one-time task
208208
task.completed = True # complete the task
209209
else: # if task is repeatable

0 commit comments

Comments
 (0)