summaryrefslogtreecommitdiff
path: root/cli/app/controllers/graph_controller.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-03 16:47:51 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-03 16:47:51 +0200
commit3e9de575501fd1945b8341f7a4e3a89b73e3cb03 (patch)
treef3adbe4177b2287e9dd2380a19e3260f82aaf3bb /cli/app/controllers/graph_controller.py
parentabd277bc02d36570038de4c0646a672f5585fa84 (diff)
getting to the page editor with add tile form
Diffstat (limited to 'cli/app/controllers/graph_controller.py')
-rw-r--r--cli/app/controllers/graph_controller.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/app/controllers/graph_controller.py b/cli/app/controllers/graph_controller.py
index 3fa4cce..7efda73 100644
--- a/cli/app/controllers/graph_controller.py
+++ b/cli/app/controllers/graph_controller.py
@@ -17,13 +17,13 @@ class GraphView(CrudView):
session.query(Tile).filter(Tile.page_id == item.id).delete(synchronize_session=False)
session.query(Page).filter(Page.graph_id == item.id).delete(synchronize_session=False)
- @route('/name/<path>', methods=['GET'])
- def get_name(self, path: str):
+ @route('/name/<graph_path>', methods=['GET'])
+ def get_name(self, graph_path: str):
"""
Fetch a single {model}.
"""
session = Session()
- item = session.query(self.model).filter(self.model.path == path).first()
+ item = session.query(self.model).filter(self.model.path == graph_path).first()
if not item:
session.close()
return jsonify({