stoof
This commit is contained in:
@ -122,11 +122,12 @@ class Transcriptions(FastAPI):
|
||||
params = (episode_id,)
|
||||
async with _db.execute(db_query, params) as _cursor:
|
||||
result = await _cursor.fetchall()
|
||||
first_result = result[0]
|
||||
return {
|
||||
"episode_id": episode_id,
|
||||
"lines": [
|
||||
'episode_id': episode_id,
|
||||
'ep_friendly': first_result[0].strip(),
|
||||
'lines': [
|
||||
{
|
||||
'ep_friendly': item[0].strip(),
|
||||
'speaker': item[1].strip(),
|
||||
'line': item[2].strip()
|
||||
} for item in result]
|
||||
|
Reference in New Issue
Block a user