# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors # For license information, please see license.txt import jingrow def execute(): frappe.reload_pg("press", "doctype", "site") domain = frappe.db.get_single_value("Press Settings", "domain") frappe.db.sql( "UPDATE tabSite SET domain = %s WHERE IFNULL(domain, '') = ''", (domain,) )