diff --git a/CHANGES.rst b/CHANGES.rst index fb3d6be5..f86ec8de 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 6.2.11 (unreleased) ------------------- -- Nothing changed yet. +- Fix limit in query for service in ScadenziarioDayPost service + [eikichi18] 6.2.10 (2024-06-11) diff --git a/src/design/plone/contenttypes/restapi/services/scadenziario/post.py b/src/design/plone/contenttypes/restapi/services/scadenziario/post.py index e19720c1..1f8072aa 100644 --- a/src/design/plone/contenttypes/restapi/services/scadenziario/post.py +++ b/src/design/plone/contenttypes/restapi/services/scadenziario/post.py @@ -218,12 +218,12 @@ def reply(self): end = None # qui ce l'abbiamo per forza start if "start" in query_for_catalog: - start = query_for_catalog["start"]["query"] + start = query_for_catalog["start"]["query"][0] if "end" in query_for_catalog: - end = query_for_catalog["end"]["query"] + end = query_for_catalog["start"]["query"][1] expanded_events = self.expand_events(events, 3, start, end) - start_date = start[0].strftime("%Y/%m/%d") + start_date = start.strftime("%Y/%m/%d") correct_events = [] for x in expanded_events: if start_date == x.start.strftime("%Y/%m/%d"):