From 6f521efadbc5a51cfee91f045b30cc921769ef79 Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 20:05:14 +0300 Subject: [PATCH] fix --- SE_API/TaskRoutes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index 7e1ff60..240463b 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -817,7 +817,7 @@ def getTaskById(token, taskId, ownerId): grade = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId)) gradeFound = False for g in grade.run(): - task['grade'] = g + task['grade'] = json.loads(g.to_JSON()) gradeFound = True if not gradeFound: task['grade'] = {'taskId': taskId, 'userId': ownerId, 'grade': None}