def _get_current_user():
    session = web.cookies(session="").session
    try:
        email, login_time, digest = session.split(',')
    except __HOLE__:
        return

    if check_salted_hash(email + "," + login_time, digest):
        return User.find(email=email)
dataset/ETHPy150Open anandology/broadgauge/broadgauge/account.py/_get_current_user