mirror of
https://github.com/hanzo-io/cloud.git
synced 2026-11-02 06:28:13 +00:00
14 lines
323 B
Python
14 lines
323 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
frappe.db.sql(
|
|
"update `tabSite Backup` set files_availability = 'Available' where `site` not"
|
|
" like '%frappe.cloud.archived%'"
|
|
)
|
|
frappe.db.sql(
|
|
"update `tabSite Backup` set files_availability = 'Unavailable' where `site`"
|
|
" like '%frappe.cloud.archived%'"
|
|
)
|
|
frappe.db.commit()
|