Merge pull request #158 from sagidayan/API_Dev

fix in submitGrade
This commit is contained in:
Sagi Dayan 2015-08-03 00:25:44 +03:00
commit 383ecff2a1

View file

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