Skip to content

Commit

Permalink
[SQL Lab] Removing display limit
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bodley committed Feb 26, 2019
1 parent e112659 commit e98594a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2437,13 +2437,9 @@ def results(self, key):
'{}'.format(rejected_tables)), status=403)

payload = utils.zlib_decompress_to_string(blob)
display_limit = app.config.get('DEFAULT_SQLLAB_LIMIT', None)
if display_limit:
payload_json = json.loads(payload)
payload_json['data'] = payload_json['data'][:display_limit]
return json_success(
json.dumps(
payload_json,
json.loads(payload),
default=utils.json_iso_dttm_ser,
ignore_nan=True,
),
Expand Down

0 comments on commit e98594a

Please sign in to comment.