code: def _ratio(self, key):
          '''Return the yes/total ratio as a percetage string
          suitable for use as as css attribute.'''
          total = float(self._total_votes())
          try:
              return math.floor(self[key] / total * 100)
          except ZeroDivisionError:
              return float(0f _ratio(self, key):
          '''Return the yes/total ratio as a percetage string
          suitable for use as as css attribute.'''
          total = float(self._total_votes())
          try:
              return math.floor(self[key] / total * 100)
          except ZeroDivisionError:
              return float(0)
docs: Return the yes/total ratio as a percetage string
          suitable for use as as css attribute.