From 72d3036c2add8929f782681aec541bde2bd629ae Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Wed, 24 Jun 2015 01:20:53 +0300 Subject: [PATCH] fix #62 --- 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 bf9d76a..5c12708 100644 --- a/SE_API/ProjectRoutes.py +++ b/SE_API/ProjectRoutes.py @@ -69,7 +69,7 @@ def create_project(token): #todo: check legality try: - project = Project(projectName=payload['projectName'], courseName=payload['courseName'], masterId=user.key().id(), gitRepository=payload['gitRepository'], membersId=[token]) + project = Project(projectName=payload['projectName'], courseName=payload['courseName'], master_id=user.key().id(), gitRepository=payload['gitRepository'], membersId=[token]) except Exception as e: print e return bad_request() @@ -77,7 +77,7 @@ def create_project(token): db.put(project) db.save return Response(response=project.to_JSON(), - status=201, + status=200, mimetype="application/json") #----------------------------------------------------------