From 38d0fe42b507abc9ced4e9538a0a1b750962903b Mon Sep 17 00:00:00 2001 From: Luca Bellenghi Date: Thu, 17 Oct 2024 10:06:40 +0200 Subject: [PATCH] update upgrade step to fix indexing on large sites --- CHANGES.rst | 3 ++- src/design/plone/contenttypes/upgrades/to_730x.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index b49cba5a..a3f666ab 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.2.20 (unreleased) ------------------- -- Nothing changed yet. +- Fix upgrade step + [lucabel] 6.2.19 (2024-09-23) diff --git a/src/design/plone/contenttypes/upgrades/to_730x.py b/src/design/plone/contenttypes/upgrades/to_730x.py index 1bea0aa3..465fb368 100644 --- a/src/design/plone/contenttypes/upgrades/to_730x.py +++ b/src/design/plone/contenttypes/upgrades/to_730x.py @@ -82,7 +82,7 @@ def to_7303(context): def to_7304(context): - brains = context.portal_catalog() + brains = context.portal_catalog(**{'portal_type': 'Event'}) tot = len(brains) i = 0 for brain in brains: