This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch feature--embeddable-charts-pilot
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit fcfb4705903160e3e2c050fe7f80ef4401fb0ec8
Author: Conglei Shi <[email protected]>
AuthorDate: Tue Nov 13 01:33:12 2018 -0800

    added cache logic
---
 superset/common/query_context.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset/common/query_context.py b/superset/common/query_context.py
index 7fe67db..ce90a75 100644
--- a/superset/common/query_context.py
+++ b/superset/common/query_context.py
@@ -119,7 +119,7 @@ class QueryContext:
     def get_data(self, df):
         return df.to_dict(orient='records')
 
-    def get_payload(self, query_obj):
+    def get_single_payload(self, query_obj):
         """Returns a payload of metadata and data"""
         payload = self.get_df_payload(query_obj)
         df = payload.get('df')
@@ -132,9 +132,9 @@ class QueryContext:
             del payload['df']
         return payload
 
-    def get_payloads(self):
+    def get_payload(self):
         """Get all the paylaods from the arrays"""
-        return [self.get_payload(query_ojbect) for query_ojbect in 
self.queries]
+        return [self.get_single_payload(query_ojbect) for query_ojbect in 
self.queries]
 
     @property
     def cache_timeout(self):

Reply via email to