old_contents: import frappe
  import erpnext
  
  def execute():
  	website_settings = frappe.get_doc('Website Settings', 'Website Settings')
  	if frappe.db.exists('Web Page', website_settings.home_page):
  		header = frappe.db.get_value('Web Page', website_settings.home_page, 'header')
  		print header
  		if header and header.startswith("<div class='hero text-center'>"):
  			homepage = frappe.get_doc('Homepage', 'Homepage')
  			homepage.company = erpnext.get_default_company()
  			homepage.tagline = header.split('<h1>')[1].split('</h1>')[0]
  			homepage.setup_items()
  			homepage.save()
  
  			website_settings.home_page = 'home'
  			website_settings.save()
  
  
new_contents: import frappe
  import erpnext
  
  def execute():
  	website_settings = frappe.get_doc('Website Settings', 'Website Settings')
  	if frappe.db.exists('Web Page', website_settings.home_page):
  		header = frappe.db.get_value('Web Page', website_settings.home_page, 'header')
  		if header and header.startswith("<div class='hero text-center'>"):
  			homepage = frappe.get_doc('Homepage', 'Homepage')
  			homepage.company = erpnext.get_default_company()
  			homepage.tagline = header.split('<h1>')[1].split('</h1>')[0]
  			homepage.setup_items()
  			homepage.save()
  
  			website_settings.home_page = 'home'
  			website_settings.save()
  
  
subject: remove print in homepage