Skip to content

Commit 2b4d369

Browse files
committed
Fix errors
1 parent 89d9820 commit 2b4d369

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def complete_task(task_id) -> Response: # complete task from task ID
408408
(
409409
math.sqrt(max(user.rating, 0))
410410
* (1 + math.log(max(i + 1, 1)))
411-
* (1 + math.log(max.max(overdue_tasks + 1, 1)))
411+
* (1 + math.log(max(overdue_tasks + 1, 1)))
412412
),
413413
0,
414414
) # decrease the user rating score for each day of inactivity
@@ -444,9 +444,9 @@ def complete_task(task_id) -> Response: # complete task from task ID
444444
(
445445
(10 + math.log(max(user.rating + 100, 100)) ** 2)
446446
* repeat_multiplier
447-
* (1 - date_multiplier)
448-
if date_multiplier < 1
449-
else (date_multiplier - 1) / max(user.daily_tasks_completed, 1)
447+
* (1 - due_multiplier)
448+
if due_multiplier < 1
449+
else (due_multiplier - 1) / max(user.daily_tasks_completed, 1)
450450
),
451451
0,
452452
) # increase user rating score based on user rating, task repeat multiplier and number of tasks completed today

0 commit comments

Comments
 (0)