Skip to content

Commit

Permalink
Fix indentation from prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xtorret committed Nov 6, 2021
1 parent 69ebf47 commit 11442e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/threads/project_layers_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _set_layer_config(self, layers):
vr_layer = tools_qgis.get_layer_by_tablename(vr_layer).id() # Get layer id
vr_key_column = value_relation['keyColumn'] # Get 'Key'
vr_value_column = value_relation['valueColumn'] # Get 'Value'
vr_allow_nullvalue = value_relation['nullValue'] # Get null values
vr_allow_nullvalue = value_relation['nullValue'] # Get null values
vr_filter_expression = value_relation['filterExpression'] # Get 'FilterExpression'
if vr_filter_expression is None:
vr_filter_expression = ''
Expand All @@ -214,6 +214,7 @@ def _set_layer_config(self, layers):
'AllowNull': f'{vr_allow_nullvalue}',
'FilterExpression': f'{vr_filter_expression}'})
layer.setEditorWidgetSetup(field_index, editor_widget_setup)

except Exception as e:
self.exception = e
self.vr_errors.add(layer_name)
Expand Down

0 comments on commit 11442e9

Please sign in to comment.