add only visible data for downloading report (#3620)

This commit is contained in:
Manas Solanki 2017-07-11 10:22:25 +05:30 committed by Rushabh Mehta
parent 6d1c652cfe
commit 91ebe48c48

View file

@ -159,7 +159,7 @@ def export_query():
elif not row:
result.append([])
else:
result = result + data.result
result = result + [d for i,d in enumerate(data.result) if (i+1 in visible_idx)]
from frappe.utils.xlsxutils import make_xlsx
xlsx_file = make_xlsx(result, "Query Report")