def tag_sidebar(request, form_data, facets):
    qtag = form_data.get('tag')
    tags = [facet['term'] for facet in facets['tags']]
    rv = [FacetLink(_(u'All Tags'), dict(tag=None), not qtag)]
    rv += [FacetLink(tag, dict(tag=tag), tag == qtag) for tag in tags]
    if qtag and tags not in qtag:
        rv += [FacetLink(qtag, dict(tag=qtag), True)]
    return rv
dataset/ETHPy150Open mozilla/addons-server/src/olympia/search/views.py/tag_sidebar/swapped operands of `not in`