def get_error_deleting_snapshots(meta):
    error_deleting_snapshots = []
    snapshots_t = Table('snapshots', meta, autoload=True)
    error_deleting_snapshots_q = select(columns=[snapshots_t.c.id]).where(and_((snapshots_t.c.status == 'error_deleting'), (snapshots_t.c.deleted == 0)))
    for i in error_deleting_snapshots_q.execute():
        error_deleting_snapshots.append(i[0])
    return error_deleting_snapshots
def get_error_deleting_snapshots(meta):
    error_deleting_snapshots = []
    snapshots_t = Table('snapshots', meta, autoload=True)
    error_deleting_snapshots_q = select(columns=[snapshots_t.c.id]).where(and_((snapshots_t.c.status == 'error_deleting'), (snapshots_t.c.deleted == 0)))
    for i in error_deleting_snapshots_q.execute():
        error_deleting_snapshots.append(i[0])
    return error_deleting_snapshots