@app.before_request
def load_globals():
    g.user = current_user
    try:
        g.user_id = current_user.id
    except __HOLE__:
        g.user_id = None

    g.api_key = os.getenv("API_KEY")
    g.webapp_root = os.getenv("WEBAPP_ROOT_PRETTY", os.getenv("WEBAPP_ROOT"))
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/views.py/load_globals