From 05866cc8624df5f35d7bfe49033f615a8d6137d0 Mon Sep 17 00:00:00 2001 From: edipretoro Date: Fri, 2 Jan 2026 15:09:50 +0100 Subject: [PATCH] Adding a links attribute to use the relationship to the LinkDB class --- scrarls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scrarls.py b/scrarls.py index e8d7d3b..8dbcbcb 100644 --- a/scrarls.py +++ b/scrarls.py @@ -69,6 +69,9 @@ class TvShowDB(Base): onupdate=func.datetime('now'), nullable=False ) + links: Mapped[list["LinkDB"]] = relationship(back_populates="show") + + class LinkDB(Base): """Modèle pour le stockage des liens de téléchargement (SQLAlchemy 2.0)."""