Exemple #1
0
 def last_backup_not_newer_than(self, datetime):
     return Backup.query(ancestor=self.key) \
         .filter(Backup.deleted == None) \
         .filter(Backup.created <= datetime) \
         .order(-Backup.created).get()
Exemple #2
0
 def __last_backup_async(self):
     return Backup.query(ancestor=self.key) \
         .filter(Backup.deleted == None) \
         .order(-Backup.created) \
         .get_async()