Skip to content

Commit

Permalink
update to backend console logging
Browse files Browse the repository at this point in the history
outputs the number of incomplete tasks found into the server terminal
  • Loading branch information
Taseen18 committed Mar 26, 2024
1 parent 434729e commit 775868e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified backend/to_do_list/__pycache__/views.cpython-311.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions backend/to_do_list/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def get(self, request):
'description': task.description,
'completed': task.completed,
})

print(len(tasks), "tasks found")

return JsonResponse({'tasks': tasks}, safe=False)

Expand Down

0 comments on commit 775868e

Please sign in to comment.