From 3ee94a6cdad4eb30517e6ee50f856f6f61ef72b8 Mon Sep 17 00:00:00 2001 From: Dmitry Novikov Date: Fri, 25 Oct 2019 11:57:38 +0300 Subject: [PATCH] fix --- clientsideapp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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