mirror of
https://github.com/hanzo-io/beneficiary.git
synced 2026-10-30 18:58:28 +00:00
19 lines
508 B
Python
19 lines
508 B
Python
import frappe
|
|
|
|
from changemakers.utils.data import scrap_and_import_india_district_list
|
|
|
|
|
|
def after_install():
|
|
# Change password reset link expiry to 1 day
|
|
frappe.db.set_single_value(
|
|
"System Settings", "reset_password_link_expiry_duration", 86400
|
|
)
|
|
|
|
# Import indian district list
|
|
try:
|
|
scrap_and_import_india_district_list()
|
|
frappe.db.set_single_value("Changemakers Settings", "statedistrict_imported", 1)
|
|
frappe.db.commit()
|
|
except Exception:
|
|
frappe.errprint("Indian District Import Failed")
|