From 9e5d6f91399455f026d9614fb039cfa7bd0bb23a Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 18:41:19 +0300 Subject: [PATCH] fix --- SE_API/TaskRoutes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index 891abea..302c94d 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -704,9 +704,9 @@ def getTaskById(token, taskId, ownerId): task['grade'] = {} taskCompQuery = TaskComponent.all() - taskCompQuery.filter("taskId = ", taskId) + taskCompQuery.filter("taskId = ", int(taskId)) - taskCompQuery.filter("userId = ", ownerId) + taskCompQuery.filter("userId = ", int(ownerId)) # if task.isPersonal: # taskCompQuery.filter("userId = ", user.key().id()) # else: @@ -714,7 +714,6 @@ def getTaskById(token, taskId, ownerId): #check if never created a personalized task and if so, create it if taskCompQuery.count() == 0: - print "here" taskCompQuery = TaskComponent.all().filter("taskId =", int(taskId)).filter("userId =", -1) print "query count is: ", taskCompQuery.count() for tc in taskCompQuery.run():