Enable filter value autocomplete in examples (#2781)

This commit is contained in:
Maxime Beauchemin 2017-05-18 15:56:24 -07:00 committed by GitHub
parent 7c5f61d6a6
commit a2d2f8bb8c
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,7 @@ def load_world_bank_health_n_pop():
tbl.description = utils.readfile(os.path.join(DATA_FOLDER, 'countries.md'))
tbl.main_dttm_col = 'year'
tbl.database = get_or_create_main_db()
tbl.filter_select_enabled = True
db.session.merge(tbl)
db.session.commit()
tbl.fetch_metadata()
@ -572,6 +573,7 @@ def load_birth_names():
obj = TBL(table_name='birth_names')
obj.main_dttm_col = 'ds'
obj.database = get_or_create_main_db()
obj.filter_select_enabled = True
db.session.merge(obj)
db.session.commit()
obj.fetch_metadata()