@login_required
def dashboard(request):

    user_state = UserState.for_user(request.user)
    # @@@ would be nice to generalize this
    if not user_state.get("intro_dashboard_blurb"):
        if request.method == "POST" and request.POST in "read_blurb":
            user_state.set("intro_dashboard_blurb", True)
            blurb_read.send(sender=request.user, request=request)
            return redirect("dashboard")
        else:
            return render(request, "intro_dashboard_blurb.html")

    debug_mode = (request.GET.get("debug") is not None) and request.user.is_staff
    activities = get_activities(request.user)

    return render(request, "dashboard.html", {
        "debug_mode": debug_mode,
        "activities": activities,
    })
dataset/ETHPy150Open jtauber/learning-greek/learning_greek/views.py/dashboard/swapped operands of `in`