Browse Source

fix: sitemap condition

version-14
Shivam Mishra 3 years ago
committed by GitHub
parent
commit
e89fd7a2af
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      frappe/www/sitemap.py

+ 4
- 1
frappe/www/sitemap.py 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:


Loading…
Cancel
Save