def description(self, html=True):
        """
        Returns a descriptive form of this reminder.
        
        Examples
            Balance falls below $25.00
            Remaining Rides falls below 3
            Expiration Date is 2 days away
        """
        if self.type == 'EXP':
            action = 'is'
            quantity = '%i %s away' % (int(self.threshold), self.quantifier)
        elif self.type.key.startswith('AVAIL_'):
            action = ''
            quantity = ''
        else:
            fmt = '$%.2f' if self.type == 'BAL' else '%s'
            action = 'falls below'
            quantity = fmt % self.threshold

        if html:
            format = '<b>%s</b> %s <b>%s</b>'
        else:
            format = '%s %s %s'

        return format % (self.type.name, action, quantity)
dataset/ETHPy150Open shaunduncan/breezeminder/breezeminder/models/reminder.py/Reminder.description/original