From: Scott Baker Date: Wed, 14 May 2014 00:07:46 +0000 (-0700) Subject: add queryspec to compose_cached_query X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4a4472d78f777ade2c7c0257d97f92819722c24c;p=plstackapi.git add queryspec to compose_cached_query --- diff --git a/planetstack/core/plus/views.py b/planetstack/core/plus/views.py index bee590b..705f4f6 100644 --- a/planetstack/core/plus/views.py +++ b/planetstack/core/plus/views.py @@ -243,7 +243,7 @@ def getCDNOperatorData(randomizeData = False, wait=True): bq = PlanetStackAnalytics() - rows = bq.get_cached_query_results(bq.compose_latest_query(groupByFields=["%hostname", "event", "%slice"]), wait) # why did we need %slice ?? + rows = bq.get_cached_query_results(bq.compose_cached_query(), wait) # wait=False on the first time the Dashboard is opened. This means we might # not have any rows yet. The dashboard code polls every 30 seconds, so it