From e7babed0eb5d4b47a4f143808f69176f3556db7b Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sun, 2 Aug 2015 22:48:08 +0300 Subject: [PATCH] fix --- SE_API/TaskRoutes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SE_API/TaskRoutes.py b/SE_API/TaskRoutes.py index d950433..ac59c60 100644 --- a/SE_API/TaskRoutes.py +++ b/SE_API/TaskRoutes.py @@ -857,8 +857,10 @@ def getUsersStateByTask(token, taskId): arr = [] if task.isPersonal: - for u in enumerate(course.membersId): + for u in course.membersId: user = User.get_by_id(int(u)) + if user.key().id() == course.key().id(): + continue userDic = dict(json.loads(user.to_JSON())) grade = TaskGrade.all().filter("taskId = ", task.key().id()).filter("userId = ", user.key().id()) for g in grade.run():