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")