Skip to content

Commit

Permalink
updated web service response #673
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Jan 20, 2017
1 parent 0cce666 commit 8d854aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slycat/web/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ def get_remote_host_dict():


@cherrypy.tools.json_in(on=True)
@cherrypy.tools.json_out(on=True)
def put_project(pid):
database = slycat.web.server.database.couchdb.connect()
project = database.get("project", pid)
Expand Down Expand Up @@ -313,6 +312,7 @@ def put_project(pid):
project["description"] = cherrypy.request.json["description"]

database.save(project)
cherrypy.response.status = "200 Project updated."


def delete_project(pid):
Expand Down

0 comments on commit 8d854aa

Please sign in to comment.