From c0e0eeaef9e77724fd7fd07ce77d2203b089d525 Mon Sep 17 00:00:00 2001 From: Roman Kysil Date: Thu, 28 Nov 2024 09:36:52 +0100 Subject: [PATCH] Fix export --- src/redturtle/prenotazioni/browser/bookings_export.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/redturtle/prenotazioni/browser/bookings_export.py b/src/redturtle/prenotazioni/browser/bookings_export.py index 1a40239f..bbc41e61 100644 --- a/src/redturtle/prenotazioni/browser/bookings_export.py +++ b/src/redturtle/prenotazioni/browser/bookings_export.py @@ -97,8 +97,6 @@ def brains(self): portal_type="Prenotazione", review_state="confirmed", sort_on="Date", - path=self.path and {"query": self.path} or "", - created=created, ) if created: @@ -107,6 +105,13 @@ def brains(self): if date: query["Date"] = date + if self.path: + query["path"] = self.path + + import pdb + + pdb.set_trace() + return api.portal.get_tool("portal_catalog").unrestrictedSearchResults(**query) def setHeader(self, *args):