From 486fb8bfb452f351a7f3270c93af022a3e02efce Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 3 Mar 2016 22:22:54 -0500 Subject: [PATCH] [hotfix] fixing the examples --- panoramix/data/__init__.py | 12 +++++++++--- setup.py | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/panoramix/data/__init__.py b/panoramix/data/__init__.py index 1689329c47c2..763fe1109f49 100644 --- a/panoramix/data/__init__.py +++ b/panoramix/data/__init__.py @@ -318,13 +318,14 @@ def load_birth_names(): "datasource_id": "1", "datasource_name": "birth_names", "datasource_type": "table", + "flt_op_1": "in", "limit": "25", "granularity": "ds", "groupby": [], "metric": 'sum__num', "metrics": ["sum__num"], "row_limit": config.get("ROW_LIMIT"), - "since": "100 years", + "since": "100 years ago", "until": "now", "viz_type": "table", "where": "", @@ -340,7 +341,9 @@ def load_birth_names(): table=tbl, params=get_slice_json( defaults, - groupby=['name'], flt_eq_1="girl", row_limit=50)), + groupby=['name'], + flt_col_1='gender', + flt_eq_1="girl", row_limit=50)), Slice( slice_name="Boys", viz_type='table', @@ -348,7 +351,10 @@ def load_birth_names(): table=tbl, params=get_slice_json( defaults, - groupby=['name'], flt_eq_1="boy", row_limit=50)), + groupby=['name'], + flt_col_1='gender', + flt_eq_1="boy", + row_limit=50)), Slice( slice_name="Participants", viz_type='big_number', diff --git a/setup.py b/setup.py index e1b1d3a6b0a6..732a2247cb99 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ 'sqlalchemy-utils>=0.31.3, <0.32.0', 'sqlalchemy>=1.0.8, <2.0.0', 'sqlparse>=0.1.16, <0.2.0', - 'werkzeug==0.11.2, <0.12.0', + 'werkzeug>=0.11.2, <0.12.0', ], author='Maxime Beauchemin', author_email='maximebeauchemin@gmail.com',