Запрос на получение фото из бд выдает пустой список, хотя данные в бд есть:
async def select_game_photo_for_id(title:str=None, tg_id:int=None):
with sq.connect('game_launch.db') as con:
cur = con.cursor()
game_photo = cur.execute('''SELECT photo FROM games WHERE game_name = ? AND tg_id = ?''', (title, tg_id,)).fetchall()
con.commit()
return(game_photo)