# Copyright (c) 2020, Jingrow Technologies Pvt. Ltd. and Contributors
# For license information, please see license.txt


import jingrow


def execute():
	jingrow.reload_pg("jcloude", "doctype", "site")
	domain = jingrow.db.get_single_value("Press Settings", "domain")
	jingrow.db.sql(
		"UPDATE tabSite SET domain = %s WHERE IFNULL(domain, '') = ''", (domain,)
	)
