Merge pull request #19490 from prssanna/dashboard-fix

fix: fix dashboard with date range
This commit is contained in:
Deepesh Garg 2019-11-06 18:17:08 +05:30 committed by GitHub
commit 02b9472152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,11 @@ def get(chart_name = None, chart = None, no_cache = None, from_date = None, to_d
else:
chart = frappe._dict(frappe.parse_json(chart))
timespan = chart.timespan
if chart.timespan == 'Select Date Range':
from_date = chart.from_date
to_date = chart.to_date
timegrain = chart.time_interval
filters = frappe.parse_json(chart.filters_json)