add queryspec to compose_cached_query
authorScott Baker <smbaker@gmail.com>
Wed, 14 May 2014 00:07:46 +0000 (17:07 -0700)
committerScott Baker <smbaker@gmail.com>
Wed, 14 May 2014 00:07:46 +0000 (17:07 -0700)
planetstack/core/plus/views.py

index bee590b..705f4f6 100644 (file)
@@ -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