Skip to content

Commit 213ae7f

Browse files
committed
Add algorithm to increase number of user task completed
1 parent ab4ab75 commit 213ae7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def complete_task(task_id): # complete task from task id
236236
completed=False
237237
).count() # get number of active tasks (tasks that are not completed)
238238
if user:
239+
user.tasks_completed += 1 # increase number of tasks completed by 1
239240
user.add_xp(
240241
round(
241242
task.priority

0 commit comments

Comments
 (0)