This commit is contained in:
Aran Zaiger 2015-08-02 21:55:37 +03:00
parent 993e622f53
commit b2b740e97a

View file

@ -724,9 +724,8 @@ def getAllUserTasks(token):
taskDic['submitted']['total'] = total taskDic['submitted']['total'] = total
basicTC = TaskComponent.all().filter("taskId = ", t.key().id()).filter("userId = ", -1).count() 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() allTC = TaskComponent.all().filter("taskId = ", t.key().id()).count()
done = (basicTC/allTC) - 1 done = (allTC/basicTC) - 1
taskDic['submitted']['done'] = done taskDic['submitted']['done'] = done
taskArr.append(taskDic) taskArr.append(taskDic)