def get_user():

    login = 'user_id' in session    
    if login:
        return (True, db['users'].find_one(id=session['user_id']))

    return (False, None)
Looks up the current user in the database
dataset/ETHPy150Open huner2/Tiny-CTF-Platform/server.py/get_user