def get_missing_deleted_at(meta, table_names):
    missing_deleted_at = {}
    for t in table_names:
        a_table_t = Table(t, meta, autoload=True)
        a_table_select_deleted_at_q = a_table_t.select().where(and_((a_table_t.c.deleted == 1), (a_table_t.c.deleted_at == None)))
        for row in a_table_select_deleted_at_q.execute():
            missing_deleted_at[row.id] = t
    return missing_deleted_at
def get_missing_deleted_at(meta, table_names):
    missing_deleted_at = {}
    for t in table_names:
        a_table_t = Table(t, meta, autoload=True)
        a_table_select_deleted_at_q = a_table_t.select().where(and_((a_table_t.c.deleted == 1), (a_table_t.c.deleted_at == None)))
        for row in a_table_select_deleted_at_q.execute():
            missing_deleted_at[row.id] = t
    return missing_deleted_at