commit
383ecff2a1
1 changed files with 1 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue