Skip to content

Commit

Permalink
unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jul 22, 2024
1 parent 49edfa6 commit bfee507
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plone/app/event/portlets/portlet_calendar.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from Acquisition import aq_inner
from ComputedAttribute import ComputedAttribute
from DateTime import DateTime
from plone.app.contenttypes.behaviors.collection import ISyndicatableCollection
from plone.app.contenttypes.interfaces import IFolder
from plone.app.event import _
Expand Down Expand Up @@ -29,7 +28,6 @@
from zope.interface import implementer

import calendar
import datetime
import json


Expand Down Expand Up @@ -217,9 +215,7 @@ def cal_data(self):
# except the start and the end, which should be
# taken from the current calendar start and end
start, end = _prepare_range(self.search_base, start, end)
query.update(
start_end_query(DateTime(start.isoformat()), DateTime(end.isoformat()))
)
query.update(start_end_query(start, end))
events = self.search_base.results(
batch=False, brains=True, custom_query=query
)
Expand Down

0 comments on commit bfee507

Please sign in to comment.