@library.filter
def round_percent(num):
    return round(num, 1) if num < 10 else int(round(num, 0))
Return a customercare-format percentage from a number.
dataset/ETHPy150Open mozilla/kitsune/kitsune/customercare/templatetags/jinja_helpers.py/round_percent