Update cache for the command line command. (#2213)

This commit is contained in:
Bogdan
2017-02-22 12:06:48 -08:00
committed by GitHub
parent 3e0d3584f7
commit 3a91667e92
4 changed files with 11 additions and 9 deletions

View File

@@ -156,8 +156,8 @@ def update_datasources_cache():
for database in db.session.query(models.Database).all():
print('Fetching {} datasources ...'.format(database.name))
try:
database.all_table_names()
database.all_view_names()
database.all_table_names(force=True)
database.all_view_names(force=True)
except Exception as e:
print('{}'.format(e.message))