Skip to content
Snippets Groups Projects
Commit a4f389ed authored by Martin Mareš's avatar Martin Mareš
Browse files

DB: Contest.participations

parent 23bd7ac4
Branches
No related tags found
1 merge request!137Sazba diplomů
...@@ -515,6 +515,7 @@ class Contest(Base): ...@@ -515,6 +515,7 @@ class Contest(Base):
place = relationship('Place') place = relationship('Place')
round = relationship('Round') round = relationship('Round')
scoretable = relationship('ScoreTable', primaryjoin='Contest.scoretable_id == ScoreTable.scoretable_id', viewonly=True) scoretable = relationship('ScoreTable', primaryjoin='Contest.scoretable_id == ScoreTable.scoretable_id', viewonly=True)
participations = relationship('Participation', viewonly=True)
def is_subcontest(self) -> bool: def is_subcontest(self) -> bool:
return self.master_contest_id != self.contest_id return self.master_contest_id != self.contest_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment