From 1c1a2f7b543e3da4905ce061043e23009d3ff747 Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Mon, 29 Jun 2015 21:31:47 +0300 Subject: [PATCH] fix3 --- SE_API/ProjectRoutes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SE_API/ProjectRoutes.py b/SE_API/ProjectRoutes.py index f8dc075..2a54ecf 100644 --- a/SE_API/ProjectRoutes.py +++ b/SE_API/ProjectRoutes.py @@ -86,8 +86,8 @@ def create_project(token): print e pass - project.info = json.dumps(get_github_data(project.gitRepository)) db.put(project) + project.info = json.dumps(get_github_data(project.gitRepository, project.key().id())) #update user projects list user.projects_id_list.append(str(project.key().id())) @@ -395,7 +395,7 @@ def updateProjectsInfo(): try: projects = Project.all() for project in projects.run(): - project.info = json.dumps(get_github_data(project.gitRepository)) + project.info = json.dumps(get_github_data(project.gitRepository, project.key().id())) db.put(project) db.save return accepted()