@register.simple_tag
def execution_status(status, caption=True):
    if caption:
        html = '<span class="label label-%s"><i class="fa fa-%s"></i> %s</span>' % tuple(status_mapping[status])
    else:
        html = tuple(status_mapping[status][0:2]) % '<span class="label label-%s"><i class="fa fa-%s"></i></span>'
    return html
dataset/ETHPy150Open gunnery/gunnery/gunnery/core/templatetags/core_extras.py/execution_status/swapped operands of `%`