From 4a75efe8c422a6195cc25cc96a8e15c207af027c Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Mon, 3 Aug 2015 00:24:12 +0300 Subject: [PATCH] fix in submitGrade --- SE_API/TaskRoutes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index 50a6340..33fe824 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -303,8 +303,8 @@ def submitGrade(token, taskId, ownerId, grade): try: tg = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId)) if tg.count() == 0: - grade = TaskGrade(taskId=int(taskId), userId=int(ownerId), grade=int(grade)) - db.put(grade) + grade = TaskGrade(taskId=int(taskId), userId=int(ownerId), grade=int(grade)) + db.put(grade) else: for g in tg.run():