@register.simple_tag
def remove_filter_url(request, the_filter):
    getvars = request.GET.copy()
    del getvars[the_filter]
    return (request.path, getvars.urlencode()) % "%s?%s"
dataset/ETHPy150Open caseywstark/colab/colab/apps/issues/templatetags/issues_tags.py/remove_filter_url/swapped operands of `%`