Пример #1
0
def get_js_top():
    try:
        current_user_dict = current_user.dict_about()
    except AttributeError:
        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()
    )
Пример #2
0
def get_genre_configs():
    return json_resp_from_thing(configs.genre_configs())