mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
fix: podcast status enum serialization and frontend polling
This commit is contained in:
parent
87c7d92672
commit
0fbf5d5bdd
5 changed files with 116 additions and 60 deletions
|
|
@ -753,7 +753,12 @@ class Podcast(BaseModel, TimestampMixin):
|
|||
podcast_transcript = Column(JSONB, nullable=True)
|
||||
file_location = Column(Text, nullable=True)
|
||||
status = Column(
|
||||
SQLAlchemyEnum(PodcastStatus, name="podcast_status", create_type=False),
|
||||
SQLAlchemyEnum(
|
||||
PodcastStatus,
|
||||
name="podcast_status",
|
||||
create_type=False,
|
||||
values_callable=lambda x: [e.value for e in x],
|
||||
),
|
||||
nullable=False,
|
||||
default=PodcastStatus.READY,
|
||||
server_default="ready",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue