Fix: datasource refresh schemas was broken

This commit is contained in:
Arik Fraimovich 2016-01-07 00:36:09 +02:00
parent 13252bb0af
commit bd29bdbb2e

View File

@ -236,7 +236,7 @@ def refresh_schemas():
Refreshs the datasources schema.
"""
for ds in models.DataSource.all():
for ds in models.DataSource.select():
logger.info("Refreshing schema for: {}".format(ds.name))
ds.get_schema(refresh=True)