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()
|