def html(self):
        """
        Returns an HTML representation of the Interval, using a css class 
        called interval_X, with X being the interval index.

        An empty value will have a class of no_interval.

        The span will also have a class named after the subject to make
        multiple intervals available in a panel.

        @return: An HTML SPAN element, in the format: '<span class="interval_X X">1,000</span>'
        """
        # Get the name of the subject
        if not self.result is None and 'value' in self.result:
            if 'index' in self.result and 'subject' in self.result:
                interval = self.result['index']
                interval_class = "interval_%d" % interval if 0 >= interval else 'no_interval'
                t = '<span class="{{ class }} {{ result.subject }}">' \
                    '{{ result.value|floatformat:0 }}</span>'
                c = {'class': interval_class}
                return self.template(t, c)
        return self.empty_html_result
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/calculators.py/Interval.html/swapped operands of `>=`