def get_flags():

    flags = db.query('''select f.task_id from flags f 
        where f.user_id = :user_id''',
        user_id=session['user_id'])
    return [f['task_id'] for f in list(flags)]
Returns the flags of the current user
dataset/ETHPy150Open huner2/Tiny-CTF-Platform/server.py/get_flags