I want to export auto 1 doctype file everyday or everyHour into a path Folder.
- First,
I create a method use to Export doctype Account in frappe/core/page/data_import_tool/exporter.py file.
@frappe.whitelist()
def get_template_account():
get_template(“Account”,“Account”,“Yes”,“Yes”)
@frappe.whitelist()
def get_template(doctype=None, parent_doctype=None, all_doctypes=“No”, with_data=“No”):
all_doctypes = all_doctypes==“Yes”
docs_to_export = {}
- Second:
Then. I call get_template_account() method in frappe/hood.py
scheduler_events = {
“all”: [
“frappe.utils.email_lib.bulk.flush”,
“frappe.core.page.data_import_tool.exporter.get_template_account”
],
“daily”: [
“frappe.utils.email_lib.bulk.clear_outbox”,
“frappe.core.doctype.notification_count.notification_count.clear_notifications”,
“frappe.core.doctype.event.event.send_event_digest”,
“frappe.sessions.clear_expired_sessions”,
“frappe.core.doctype.email_alert.email_alert.trigger_daily_alerts”,
],
“hourly”: [
“frappe.website.doctype.website_group.website_group.clear_event_cache”,
“frappe.core.page.data_import_tool.exporter.get_template_account”
]
}
why wouldn’t it run.