fix in submitGrade
This commit is contained in:
parent
4a75efe8c4
commit
1b3e4b74b9
1 changed files with 1 additions and 3 deletions
|
@ -313,9 +313,7 @@ def submitGrade(token, taskId, ownerId, grade):
|
||||||
g.userId=int(ownerId)
|
g.userId=int(ownerId)
|
||||||
db.put(g)
|
db.put(g)
|
||||||
db.save
|
db.save
|
||||||
return Response(response=grade.to_JSON(),
|
return accepted()
|
||||||
status=200,
|
|
||||||
mimetype="application/json")
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print e.message
|
print e.message
|
||||||
return bad_request("wrong format")
|
return bad_request("wrong format")
|
||||||
|
|
Loading…
Reference in a new issue