fix in submitGrade
This commit is contained in:
parent
043fb67b5a
commit
4a75efe8c4
1 changed files with 2 additions and 2 deletions
|
@ -303,8 +303,8 @@ def submitGrade(token, taskId, ownerId, grade):
|
||||||
try:
|
try:
|
||||||
tg = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId))
|
tg = TaskGrade.all().filter("taskId = ", int(taskId)).filter("userId = ", int(ownerId))
|
||||||
if tg.count() == 0:
|
if tg.count() == 0:
|
||||||
grade = TaskGrade(taskId=int(taskId), userId=int(ownerId), grade=int(grade))
|
grade = TaskGrade(taskId=int(taskId), userId=int(ownerId), grade=int(grade))
|
||||||
db.put(grade)
|
db.put(grade)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
for g in tg.run():
|
for g in tg.run():
|
||||||
|
|
Loading…
Reference in a new issue