summaryrefslogtreecommitdiff
path: root/cli/app/controllers/page_controller.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-02 17:38:14 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-02 17:38:14 +0200
commitf6d7fcbb50ef57f1f7d7ca8cacd711ffd576e600 (patch)
tree9d6a4882d428da7098c4244f5ca56267afe8cc1b /cli/app/controllers/page_controller.py
parent5b480258322682fdc4fa987770df9e719315f167 (diff)
showing pages for graph. getting urls right
Diffstat (limited to 'cli/app/controllers/page_controller.py')
-rw-r--r--cli/app/controllers/page_controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/app/controllers/page_controller.py b/cli/app/controllers/page_controller.py
index d393625..1f53171 100644
--- a/cli/app/controllers/page_controller.py
+++ b/cli/app/controllers/page_controller.py
@@ -14,7 +14,7 @@ class PageView(CrudView):
def where(self, query, args):
graph_id = args.get('graph_id', default=None)
if graph_id is not None:
- query = query.where(Page.graph_id == int(graph_id))
+ query = query.filter(Page.graph_id == int(graph_id))
return query
def on_destroy(self, session, item):