File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments