Skip to content

Commit

Permalink
Fix query saving
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Dec 20, 2016
1 parent ee57a5b commit 9b4cf4d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions redash/handlers/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ def post(self):
for field in ['id', 'created_at', 'api_key', 'visualizations', 'latest_query_data', 'last_modified_by']:
query_def.pop(field, None)

# If we already executed this query, save the query result reference
if 'latest_query_data_id' in query_def:
query_def['latest_query_data'] = query_def.pop('latest_query_data_id')

query_def['query_text'] = query_def.pop('query')
query_def['user'] = self.current_user
query_def['data_source'] = data_source
Expand Down

0 comments on commit 9b4cf4d

Please sign in to comment.