def GetEvents(self, year):
    """Returns the events from the calendar for the year specified.
    In cases where the calendar does not span the requested year,
    throws a 'NoCalendarDataError' exception.
    """
    events = []
    for event in self._cal.components():
      if event.name == 'VEVENT':
        name = event.summary.value
        if event.getrruleset():
          rruleset = event.getrruleset()
          dates = rruleset.between(datetime.datetime(year - 1, 12, 31),
                                   datetime.datetime(year + 1, 1, 1))
          if 1 >= len(dates):
            if len(dates) > 1:
              logging.warning('holiday %s occurs more than once a year: %r' % (name, dates))
            delta = event.dtend.value - event.dtstart.value
            dtstart = dates[0]
            dtend = dtstart + delta
            events.append({'name': name,
                           'dtstart': time.mktime(dtstart.timetuple()),
                           'dtend': time.mktime(dtend.timetuple())})
        else:
          dtstart = event.dtstart.value
          dtend = event.dtend.value
          if dtstart.year == year:
            events.append({'name': name,
                           'dtstart': time.mktime(dtstart.timetuple()),
                           'dtend': time.mktime(dtend.timetuple())})
    return events
dataset/ETHPy150Open viewfinderco/viewfinder/backend/resources/calendar.py/Calendar.GetEvents/swapped operands of `>=`