Skip to content

Commit

Permalink
Retrieve df from get_df_payload to hit cache (#6990)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and mistercrunch committed Mar 9, 2019
1 parent e47a1b2 commit 0535a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ def get_query_string_response(self, viz_obj):

def get_raw_results(self, viz_obj):
return self.json_response({
'data': viz_obj.get_df().to_dict('records'),
'data': viz_obj.get_df_payload()['df'].to_dict('records'),
})

def get_samples(self, viz_obj):
Expand Down

0 comments on commit 0535a11

Please sign in to comment.