Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Feb 2, 2024
1 parent 552a1ff commit cec04d9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/redturtle/volto/monkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from plone.event.interfaces import IEventAccessor
from plone.event.interfaces import IRecurrenceSupport
from plone.event.recurrence import recurrence_sequence_ical
from plone.event.utils import pydt

# from plone.event.utils import pydt
from Products.CMFPlone.interfaces import IConstrainTypes
from zope.globalrequest import getRequest

Expand Down Expand Up @@ -100,11 +101,7 @@ def get_obj(start):
def _recurrence_upcoming_event(self):
"""Return the next upcoming event"""
adapter = IRecurrenceSupport(self.context)
# from plone.app.event.base import localized_now
from datetime import timedelta
# import pdb; pdb.set_trace()
# occs_old = adapter.occurrences(range_start=localized_now())
occs = adapter.occurrences(range_start=self.context.start) # + timedelta(days=-1))
occs = adapter.occurrences(range_start=self.context.start)
try:
return next(occs)
except StopIteration:
Expand Down

0 comments on commit cec04d9

Please sign in to comment.