From 0ff51a257d723ebd19bb89ca44f8b0644b4abcb8 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 6 May 2020 13:17:41 +0530 Subject: [PATCH] refactor: move dashboard utilities to frappe.utils --- frappe/desk/doctype/dashboard_chart/dashboard_chart.py | 2 +- frappe/{core/page/dashboard => utils}/dashboard.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename frappe/{core/page/dashboard => utils}/dashboard.py (100%) diff --git a/frappe/desk/doctype/dashboard_chart/dashboard_chart.py b/frappe/desk/doctype/dashboard_chart/dashboard_chart.py index 7ddb3d98f0..417ef2ba82 100644 --- a/frappe/desk/doctype/dashboard_chart/dashboard_chart.py +++ b/frappe/desk/doctype/dashboard_chart/dashboard_chart.py @@ -7,7 +7,7 @@ import frappe from frappe import _ import datetime import json -from frappe.core.page.dashboard.dashboard import cache_source, get_from_date_from_timespan +from frappe.utils.dashboard import cache_source, get_from_date_from_timespan from frappe.utils import nowdate, add_to_date, getdate, get_last_day, formatdate, get_datetime from frappe.model.naming import append_number_if_name_exists from frappe.boot import get_allowed_reports diff --git a/frappe/core/page/dashboard/dashboard.py b/frappe/utils/dashboard.py similarity index 100% rename from frappe/core/page/dashboard/dashboard.py rename to frappe/utils/dashboard.py