def check_reminder(self, card, last_state=None):
        """ Entry point for lazily checking reminders based on type """

        # Don't proceed if we've passed the time we are limiting to
        if self.valid_until and self.valid_until >= datetime.now():
            return False

        if self.type == 'BAL':
            return self._check_balance_reminder(card, last_state)
        elif self.type == 'RIDE':
            return self._check_ride_reminder(card, last_state)
        elif self.type == 'ROUND_TRIP':
            return self._check_round_trip_reminder(card, last_state)
        elif self.type == 'EXP':
            return self._check_expiration_reminder(card)
        elif self.type == 'AVAIL_BAL':
            if last_state:
                return self._check_available_balance_reminder(card, last_state)
        elif self.type == 'AVAIL_PROD':
            if last_state:
                return self._check_available_product_reminder(card, last_state)
        else:
            message = 'Reminders for type %s are not implemented' % self.type
            app.logger.exception(message)
            raise NotImplementedError(message)
dataset/ETHPy150Open shaunduncan/breezeminder/breezeminder/models/reminder.py/Reminder.check_reminder/swapped operands of `>=`