mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-14 10:13:22 -06:00
fix linger non id based filter, object based
This commit is contained in:
@@ -53,7 +53,7 @@ class Season(db.Model):
|
|||||||
@property
|
@property
|
||||||
def episodes(self):
|
def episodes(self):
|
||||||
"""returns a List of Episodes under this Season"""
|
"""returns a List of Episodes under this Season"""
|
||||||
return Episode.query.filter_by(season=self).all().sort(key=lambda ep : ep.number)
|
return Episode.query.filter_by(season_id=self.id).all().sort(key=lambda ep : ep.number)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def characters(self, sort):
|
def characters(self, sort):
|
||||||
|
|||||||
Reference in New Issue
Block a user