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/tile_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/app/controllers/tile_controller.py') diff --git a/cli/app/controllers/tile_controller.py b/cli/app/controllers/tile_controller.py index fc36943..58fd6d0 100644 --- a/cli/app/controllers/tile_controller.py +++ b/cli/app/controllers/tile_controller.py @@ -13,8 +13,8 @@ class TileView(CrudView): def where(self, query, args): graph_id = args.get('graph_id', default=None) if graph_id is not None: - query = query.where(Tile.graph_id == int(graph_id)) + query = query.filter(Tile.graph_id == int(graph_id)) page_id = args.get('page_id', default=None) if page_id is not None: - query = query.where(Tile.page_id == int(page_id)) + query = query.filter(Tile.page_id == int(page_id)) return query -- cgit v1.2.3-70-g09d2