Skip to content

Commit

Permalink
Include Run-side of relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Aug 5, 2024
1 parent 15234ad commit abc1836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ixmp4/data/db/run/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit abc1836

Please sign in to comment.