Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Nov 28, 2024
1 parent 7666f55 commit c0e0eea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/redturtle/prenotazioni/browser/bookings_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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):
Expand Down

0 comments on commit c0e0eea

Please sign in to comment.