fix: sitemap condition

This commit is contained in:
Shivam Mishra 2022-04-10 16:22:56 +05:30 committed by GitHub
parent b73580a262
commit e89fd7a2af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,10 @@ def get_public_pages_from_doctypes():
controller = get_controller(doctype)
meta = frappe.get_meta(doctype)
condition_field = meta.is_published_field or controller.website.condition_field
if not condition_field:
continue
try:
res = frappe.db.get_all(doctype, ['route', 'name', 'modified'], { condition_field: 1 })
for r in res: