Skip to content

Commit 3987778

Browse files
committed
Fix XP calculation
1 parent ae21301 commit 3987778

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
@@ -223,7 +223,7 @@ def complete_task(task_id): # complete task from task id
223223
* task.difficulty
224224
* task.repeat_often
225225
* repeat_multiplier
226-
* math.log(max(task.times_completed, 1))
226+
* (1 + math.log(max(task.times_completed, 1)))
227227
)
228228
) # add XP
229229
db.session.commit() # commit database changes

0 commit comments

Comments
 (0)