Skip to content

Commit

Permalink
FIX: Get variable from proyect
Browse files Browse the repository at this point in the history
  • Loading branch information
nestorip committed Sep 15, 2020
1 parent 33a785f commit 80dda6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dao/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,8 @@ def get_layer_by_tablename(self, tablename, show_warning=False, log_info=False):

# Iterate over all layers
layer = None
main_schema = self.plugin_settings_value('gwMainSchema')
main_schema = QgsExpressionContextUtils.projectScope(QgsProject.instance()).variable('gwMainSchema')

for cur_layer in layers:
uri_table = self.get_layer_source_table_name(cur_layer)
table_schema = self.get_layer_schema(cur_layer)
Expand Down

0 comments on commit 80dda6b

Please sign in to comment.