diff options
-rw-r--r-- | kittystore/storm/model.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kittystore/storm/model.py b/kittystore/storm/model.py index 2c9cad4..084a4e0 100644 --- a/kittystore/storm/model.py +++ b/kittystore/storm/model.py @@ -216,6 +216,9 @@ class Thread(Storm): def __len__(self): return self.emails.count() + def replies_after(self, date): + return self.emails.find(Email.date > date) + def __storm_pre_flush__(self): """Auto-set the active date from the last email in thread""" if self.date_active is not None: |