We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9bdcc2 commit 3f4379aCopy full SHA for 3f4379a
packet/models.py
@@ -29,7 +29,7 @@ def current_packet(self):
29
"""
30
:return: The most recent packet for this freshman
31
32
- return self.packets[0]
+ return next(iter(self.packets), None)
33
34
35
class Packet(db.Model):
0 commit comments