File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -444,13 +444,10 @@ def complete_task(task_id) -> Response: # complete task from task ID
444
444
current_time # set last time clicked to current time
445
445
)
446
446
user .rating += max (
447
- (
448
- (10 + math .log (max (user .rating + 100 , 100 )) ** 2 )
449
- * repeat_multiplier
450
- * (1 - due_multiplier )
451
- if due_multiplier < 1
452
- else (due_multiplier - 1 ) / max (user .daily_tasks_completed , 1 )
453
- ),
447
+ (10 + math .log (max (user .rating + 100 , 100 )) ** 2 )
448
+ * repeat_multiplier
449
+ * ((1 - due_multiplier ) if due_multiplier < 1 else (due_multiplier - 1 ))
450
+ / max (user .daily_tasks_completed , 1 ),
454
451
0 ,
455
452
) # increase user rating score based on user rating, task repeat multiplier and number of tasks completed today
456
453
user .rating = max (
You can’t perform that action at this time.
0 commit comments