Skip to content

Commit

Permalink
Minor code review about Python
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Sep 20, 2024
1 parent 3319899 commit 1bb7cb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dynamic_layers/core/dynamic_layers_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def update_dynamic_layers_datasource(self):
And the given search&replace dictionary
"""
for layer in self.dynamic_layers.values():
a = LayerDataSourceModifier(layer, self.project, self.layer, self.feature, self.feedback)
a.compute_new_uri(self.variables)
datasource_modifier = LayerDataSourceModifier(layer, self.project, self.layer, self.feature, self.feedback)
datasource_modifier.compute_new_uri(self.variables)

if not self.iface:
continue
Expand Down
5 changes: 2 additions & 3 deletions dynamic_layers/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from pathlib import Path
from typing import List

from PyQt5.QtCore import QUrl
from PyQt5.QtGui import QDesktopServices
from qgis.core import (
Qgis,
QgsExpression,
Expand All @@ -20,7 +18,8 @@
QgsProject,
QgsVectorLayer,
)
from qgis.PyQt.QtCore import QCoreApplication
from qgis.PyQt.QtCore import QCoreApplication, QUrl
from qgis.PyQt.QtGui import QDesktopServices

from dynamic_layers.definitions import PLUGIN_MESSAGE

Expand Down

0 comments on commit 1bb7cb9

Please sign in to comment.