From 1b3e4b74b9d0a78c627948585274b63526fa76bb Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Mon, 3 Aug 2015 00:25:31 +0300 Subject: [PATCH] fix in submitGrade --- SE_API/TaskRoutes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index 33fe824..9012749 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -313,9 +313,7 @@ def submitGrade(token, taskId, ownerId, grade): g.userId=int(ownerId) db.put(g) db.save - return Response(response=grade.to_JSON(), - status=200, - mimetype="application/json") + return accepted() except Exception as e: print e.message return bad_request("wrong format")