mirror of
https://github.com/hanzo-io/cloud.git
synced 2026-11-02 17:30:47 +00:00
16 lines
386 B
Python
16 lines
386 B
Python
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# For license information, please see license.txt
|
|
|
|
|
|
import frappe
|
|
|
|
from press.press.doctype.site.site import release_name
|
|
|
|
|
|
def execute():
|
|
frappe.reload_doc("press", "doctype", "site")
|
|
sites = frappe.get_all("Site", filters={"status": "Archived"})
|
|
for site in sites:
|
|
release_name(site.name)
|
|
frappe.db.commit()
|