@register.filter
def remaining(item_list, total):
    """
    Returns a null list of remaining items derived from the total. Usefull in
    situations where you want exactly ten items in an interface and you may only
    have eight items. 
    """
    list_length = len(item_list)
    expected_total = int(total)
    if list_length != expected_total:
        return range(0, list_length-expected_total)
    return ''
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tools/templatetags/listutils.py/remaining/swapped operands of `-`