Closed calebclimatecabinet closed 7 months ago
Good catch. I can see that function is comparing to name
but not to id
.
Ah no worries – if it'll be depreciated I'm fine letting it slide.
If anyone else comes across this I just wrote my own get_table_schema
which only works in the opposite case:
def get_table_schema(table):
base_schema = get_base_schema(table)
return next(t for t in base_schema["tables"] if t["id"] == table.name)
For example
returns
None
but the function works if you use the table's name: