fix: convert to date to datetime

This commit is contained in:
prssanna 2020-05-01 16:27:24 +05:30
parent a4b68338a4
commit 48b39a0a2b

View file

@ -76,7 +76,7 @@ def get(chart_name = None, chart = None, no_cache = None, filters = None, from_d
if to_date and len(to_date):
to_date = get_datetime(to_date)
else:
to_date = chart.to_date
to_date = get_datetime(chart.to_date)
timegrain = time_interval or chart.time_interval
filters = frappe.parse_json(filters) or frappe.parse_json(chart.filters_json) or []