Merge pull request #145 from sagidayan/API_Dev

fix
This commit is contained in:
Sagi Dayan 2015-08-02 19:52:36 +03:00
commit 1e9f24834a

View file

@ -814,7 +814,7 @@ def getTaskById(token, taskId, ownerId):
# grade = TaskGrade(grade=0, taskId=task.key().id(), userId=user.key().id())
# db.put(grade)
grade = TaskGrade.all().filter("taskId = ", taskId).filter("userId = ", ownerId)
grade = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId))
gradeFound = False
for g in grade.run():
task['grade'] = g