def last_notifications(self, last_n=5): return self.collection.find().sort( 'offset', pymongo.DESCENDING)[:last_n]