forked from 3wordchant/capsul-flask
implement ensure_vms_and_db_are_synced in cron task and add default
sender to readme
This commit is contained in:
@ -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,):
|
||||
|
Reference in New Issue
Block a user