fix
This commit is contained in:
parent
993e622f53
commit
b2b740e97a
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue