diff --git a/clientsideapp/views.py b/clientsideapp/views.py index bef24de..a7b6f87 100644 --- a/clientsideapp/views.py +++ b/clientsideapp/views.py @@ -17,7 +17,7 @@ from gw_app.nas_managers import NasFailedResult, NasNetworkError @login_required def home(request): num_active_tasks = Task.objects.filter( - abon=request.user, state='S' + abon=request.user, state=0 ).count() return render(request, 'clientsideapp/index.html', { 'num_active_tasks': num_active_tasks