Open HenrikSpa opened 2 years ago
I've tried commiting to database after each sql command when adding the views and it didn't change anything. I also tried closing the database after the view change and before layer creation and no change.
tables_columns-function gets all columns, including h_tocags, but the created layer still doesn't get that field.
For some reason,
if 'h_tocags' in wlvls_layer.fields().names()
returned False even though the view w_lvls_last_geom had the columnwlvls_layer.fields().names()
did indeed not have 'h_tocags'.I deleted the view manually and had stat symbology recreate it which solved the issue in the affected database.