Skip to content

Commit

Permalink
made changes for Big Integers front-end readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkan1 committed Apr 17, 2024
1 parent 363753f commit 4a13709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions redash/handlers/query_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ def get(self, query_id=None, query_result_id=None, filetype="json"):

if query_result_id:
query_result = get_object_or_404(models.QueryResult.get_by_id_and_org, query_result_id, self.current_org)
for i in query_result.data['rows']:
for j in i.items():
value = j[1]

for row in query_result.data['rows']:
for key, value in row.items():
if isinstance(value, int):
i[j[0]] = str(value)
row[key] = str(value)

if query_id is not None:
query = get_object_or_404(models.Query.get_by_id_and_org, query_id, self.current_org)
Expand Down

0 comments on commit 4a13709

Please sign in to comment.