mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-28 21:49:40 +02:00
fix podcast re-generation
This commit is contained in:
parent
06f541d600
commit
678d8fbbcd
2 changed files with 22 additions and 22 deletions
|
|
@ -141,9 +141,7 @@ async def generate_chat_podcast(
|
|||
|
||||
# check if podcast already exists for this chat with the same title (re-generation)
|
||||
existing_podcast = await session.execute(
|
||||
select(Podcast).filter(
|
||||
Podcast.chat_id == chat_id, Podcast.title == podcast_title
|
||||
)
|
||||
select(Podcast).filter(Podcast.chat_id == chat_id)
|
||||
)
|
||||
existing_podcast = existing_podcast.scalars().first()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue