From 4b08085d6388aa308b99e56d2a899ca0f31f969e Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Sat, 1 Aug 2015 16:52:33 +0300 Subject: [PATCH] added update foe user project list when joining --- SE_API/ProjectRoutes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SE_API/ProjectRoutes.py b/SE_API/ProjectRoutes.py index fc5bf90..943f8bf 100644 --- a/SE_API/ProjectRoutes.py +++ b/SE_API/ProjectRoutes.py @@ -145,7 +145,9 @@ def joinProject(token, projectId): return bad_request("User is already member in Project") project.membersId.append(str(user.key().id())) + user.projects_id_list.append(str(project.key().id())) + db.put(user) db.put(project) db.save