def download_template_test():
custom_report = frappe.get_doc("Report", "Lead Details")
filters = {
"company": "Frappe Tech.", # Adjust this to your company name
"from_date": "2023-09-18", # Adjust to your actual from_date
"to_date": "2024-09-18" # Adjust to your actual to_date
}
columns1, data = custom_report.run_query_report(filters=filters, user=frappe.session.user, ignore_prepared_report=True)
print("Columns:", columns1)
print("\n Data:", data)
download_template_test()