From f6d7fcbb50ef57f1f7d7ca8cacd711ffd576e600 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 17:38:14 +0200 Subject: showing pages for graph. getting urls right --- cli/app/controllers/page_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/app/controllers/page_controller.py') 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): -- cgit v1.2.3-70-g09d2