implement ensure_vms_and_db_are_synced in cron task and add default

sender to readme
This commit is contained in:
2020-05-21 21:40:41 -05:00
parent 2f55ce904e
commit e2c51d067e
6 changed files with 38 additions and 6 deletions

View File

@ -33,8 +33,8 @@ class DBModel:
return email
return None
def all_vm_ids(self,):
self.cursor.execute("SELECT id FROM vms")
def all_non_deleted_vm_ids(self,):
self.cursor.execute("SELECT id FROM vms WHERE deleted IS NULL")
return list(map(lambda x: x[0], self.cursor.fetchall()))
def operating_systems_dict(self,):