Skip to content

Commit

Permalink
Merge pull request #677 from dinukadesilva/gh-676-fix-party-order-in-…
Browse files Browse the repository at this point in the history
…pe-27

gh-676: Fix the party order in PE-27
  • Loading branch information
dinukadesilva authored Jul 14, 2020
2 parents 618b0d8 + e099895 commit 911d204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion results-tabulation-api/orm/entities/Election/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ElectionModel(db.Model):
isListed = db.Column(db.Boolean, nullable=False, default=False)
metaId = db.Column(db.Integer, db.ForeignKey(Meta.Model.__table__.c.metaId), nullable=True)

parties = relationship("ElectionPartyModel")
parties = relationship("ElectionPartyModel", order_by="ElectionPartyModel.electionPartyId")
_invalidVoteCategories = relationship("InvalidVoteCategoryModel")
subElections = relationship("ElectionModel", foreign_keys=[parentElectionId])
rootElection = relationship("ElectionModel", remote_side=[electionId], foreign_keys=[rootElectionId])
Expand Down

0 comments on commit 911d204

Please sign in to comment.