commit
f94bf35343
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ def getTaskById(token, taskId, ownerId):
|
||||||
grade = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId))
|
grade = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId))
|
||||||
gradeFound = False
|
gradeFound = False
|
||||||
for g in grade.run():
|
for g in grade.run():
|
||||||
task['grade'] = g
|
task['grade'] = json.loads(g.to_JSON())
|
||||||
gradeFound = True
|
gradeFound = True
|
||||||
if not gradeFound:
|
if not gradeFound:
|
||||||
task['grade'] = {'taskId': taskId, 'userId': ownerId, 'grade': None}
|
task['grade'] = {'taskId': taskId, 'userId': ownerId, 'grade': None}
|
||||||
|
|
Loading…
Reference in a new issue