From b2b740e97ab08330ab44c704771956e67296ef8c Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 21:55:37 +0300 Subject: [PATCH] fix --- SE_API/TaskRoutes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index 764b063..de1d5f3 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -724,9 +724,8 @@ def getAllUserTasks(token): taskDic['submitted']['total'] = total basicTC = TaskComponent.all().filter("taskId = ", t.key().id()).filter("userId = ", -1).count() - print "basic tc: " + basicTC allTC = TaskComponent.all().filter("taskId = ", t.key().id()).count() - done = (basicTC/allTC) - 1 + done = (allTC/basicTC) - 1 taskDic['submitted']['done'] = done taskArr.append(taskDic)