14 lines
368 B
Python
14 lines
368 B
Python
# Copyright (c) 2020, Jingrow Technologies Pvt. Ltd. and Contributors
|
|
# For license information, please see license.txt
|
|
|
|
|
|
import jingrow
|
|
|
|
|
|
def execute():
|
|
jingrow.reload_pg("jcloude", "pagetype", "site")
|
|
domain = jingrow.db.get_single_value("Jcloude Settings", "domain")
|
|
jingrow.db.sql(
|
|
"UPDATE tabSite SET domain = %s WHERE IFNULL(domain, '') = ''", (domain,)
|
|
)
|