From bd29bdbb2e400ec0ef933f59183551af4d9fbe24 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Thu, 7 Jan 2016 00:36:09 +0200 Subject: [PATCH] Fix: datasource refresh schemas was broken --- redash/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/tasks.py b/redash/tasks.py index 3f144a6d..81b1d0d3 100644 --- a/redash/tasks.py +++ b/redash/tasks.py @@ -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)