Skip to content

Commit af36547

Browse files
committed
Restored signature sorting to the view packet page
1 parent 519f442 commit af36547

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packet/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class Packet(db.Model):
6060
info_achieve = Column(Text, nullable=True) # Used to fulfil the technical achievements list requirement
6161

6262
freshman = relationship("Freshman", back_populates="packets")
63-
upper_signatures = relationship("UpperSignature")
64-
fresh_signatures = relationship("FreshSignature")
65-
misc_signatures = relationship("MiscSignature")
63+
upper_signatures = relationship("UpperSignature", order_by="UpperSignature.signed.desc(), UpperSignature.updated")
64+
fresh_signatures = relationship("FreshSignature", order_by="FreshSignature.signed.desc(), FreshSignature.updated")
65+
misc_signatures = relationship("MiscSignature", order_by="MiscSignature.updated")
6666

6767
def is_open(self):
6868
return self.start < datetime.now() < self.end

0 commit comments

Comments
 (0)