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


import jingrow

from jcloude.jcloude.pagetype.site.site import release_name


def execute():
	jingrow.reload_pg("jcloude", "pagetype", "site")
	sites = jingrow.get_all("Site", filters={"status": "Archived"})
	for site in sites:
		release_name(site.name)
		jingrow.db.commit()
