fix: Webpage meta patch
This commit is contained in:
parent
41a4ba45da
commit
e22d6d3977
1 changed files with 3 additions and 2 deletions
|
|
@ -4,8 +4,9 @@ def execute():
|
|||
web_pages = frappe.get_all('Web Page', ['name', 'description'])
|
||||
|
||||
for web_page in web_pages:
|
||||
if web_page.description:
|
||||
doc = frappe.get_doc('Web Page', web_page.name)
|
||||
if web_page.description and web_page.route:
|
||||
doc = frappe.new_doc('Website Route Meta')
|
||||
doc.name = web_page.route
|
||||
doc.append('meta_tags', {
|
||||
'key': 'description',
|
||||
'value': web_page.description
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue