@app.route("/top.js")
def get_js_top():
    try:
        current_user_dict = current_user.dict_about()
    except __HOLE__:
        current_user_dict = None

    return make_js_response(
        "top.js.tpl",
        segmentio_key=os.getenv("SEGMENTIO_KEY"),
        mixpanel_token=os.getenv("MIXPANEL_TOKEN"),
        stripe_publishable_key=os.getenv("STRIPE_PUBLISHABLE_KEY"),
        current_user=current_user_dict,
        genre_configs=configs.genre_configs(),
        country_names=get_country_names_from_iso()
    )
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/views.py/get_js_top