fix #62
This commit is contained in:
parent
90909c7c2f
commit
72d3036c2a
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ def create_project(token):
|
||||||
#todo: check legality
|
#todo: check legality
|
||||||
|
|
||||||
try:
|
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:
|
except Exception as e:
|
||||||
print e
|
print e
|
||||||
return bad_request()
|
return bad_request()
|
||||||
|
@ -77,7 +77,7 @@ def create_project(token):
|
||||||
db.put(project)
|
db.put(project)
|
||||||
db.save
|
db.save
|
||||||
return Response(response=project.to_JSON(),
|
return Response(response=project.to_JSON(),
|
||||||
status=201,
|
status=200,
|
||||||
mimetype="application/json")
|
mimetype="application/json")
|
||||||
|
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue