def METHOD_NAME():
    if request.form["currency"] not in ("GBP", "EUR"):
        abort(400)
    set_user_currency(request.form["currency"])
    db.session.commit()
    return redirect(url_for("tickets.main"))