Skip to content

Commit

Permalink
fix: removed lazy from mapped_column on blacklisted_streams
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Jul 31, 2024
1 parent 989bf8b commit aca5a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/media/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MediaItem(db.Model):
scraped_times: Mapped[Optional[int]] = mapped_column(sqlalchemy.Integer, default=0)
active_stream: Mapped[Optional[dict[str, str]]] = mapped_column(sqlalchemy.JSON, nullable=True)
streams: Mapped[List[Stream]] = relationship("Stream", back_populates='parent', lazy="select", cascade="all, delete-orphan")
blacklisted_streams: Mapped[Optional[List[Stream]]] = mapped_column(sqlalchemy.JSON, lazy="select", nullable=True)
blacklisted_streams: Mapped[Optional[List[Stream]]] = mapped_column(sqlalchemy.JSON, nullable=True)
symlinked: Mapped[Optional[bool]] = mapped_column(sqlalchemy.Boolean, default=False)
symlinked_at: Mapped[Optional[datetime]] = mapped_column(sqlalchemy.DateTime, nullable=True)
symlinked_times: Mapped[Optional[int]] = mapped_column(sqlalchemy.Integer, default=0)
Expand Down

0 comments on commit aca5a0f

Please sign in to comment.