From abc1836a8ff80ffcd764bd060da3da5b4a3ee096 Mon Sep 17 00:00:00 2001 From: Fridolin Glatter Date: Mon, 5 Aug 2024 10:15:34 +0200 Subject: [PATCH] Include Run-side of relationship --- ixmp4/data/db/run/model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ixmp4/data/db/run/model.py b/ixmp4/data/db/run/model.py index 714d49b1..beebf1b6 100644 --- a/ixmp4/data/db/run/model.py +++ b/ixmp4/data/db/run/model.py @@ -4,6 +4,7 @@ from ixmp4.data import abstract, types from ixmp4.data.db.model.model import Model from ixmp4.data.db.optimization.indexset import IndexSet +from ixmp4.data.db.optimization.parameter import Parameter from ixmp4.data.db.optimization.scalar import Scalar from ixmp4.data.db.optimization.table import Table from ixmp4.data.db.scenario.model import Scenario @@ -41,6 +42,7 @@ class Run(base.BaseModel): ) indexsets: types.Mapped[list["IndexSet"]] = db.relationship() + parameters: types.Mapped[list["Parameter"]] = db.relationship() scalars: types.Mapped[list["Scalar"]] = db.relationship() tables: types.Mapped[list["Table"]] = db.relationship()