@register.filter(name='percentage')
def percentage(fraction, population):
    try:
        return int(((fraction)*100 / (population)) ) % "%s%%"
    except ZeroDivisionError:
        if population == fraction:
            return "100%%"
        else:
            return ''
    except ValueError:
        return ''
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/templatetags/statistics_resources.py/percentage/swapped operands of `%`