@login_and_domain_required
@require_superuser
def calculated_properties(request, domain):
    calc_tag = request.GET.get("calc_tag", '').split('--')
    extra_arg = calc_tag[1] if len(calc_tag) > 1 else ''
    calc_tag = calc_tag[0]

    if not calc_tag or CALC_FNS.keys() not in calc_tag:
        data = {"error": 'This tag does not exist'}
    else:
        data = {"value": dom_calc(calc_tag, domain, extra_arg)}
    return json_response(data)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/domain/views.py/calculated_properties/swapped operands of `not in`