diff --git a/src/core/layers/plateform.py b/src/core/layers/plateform.py index 0186afa6..1a71aa99 100644 --- a/src/core/layers/plateform.py +++ b/src/core/layers/plateform.py @@ -67,4 +67,4 @@ def _link_boat(self, boatLayer: SammoLayer): "Value": "name", } setup = QgsEditorWidgetSetup("ValueRelation", cfg) - res = self.layer.setEditorWidgetSetup(idx, setup) \ No newline at end of file + self.layer.setEditorWidgetSetup(idx, setup) diff --git a/src/core/layers/survey.py b/src/core/layers/survey.py index bf894184..076e1dd2 100644 --- a/src/core/layers/survey.py +++ b/src/core/layers/survey.py @@ -19,7 +19,7 @@ def __init__( self, db: SammoDataBase, boatLayer: SammoBoatLayer, - surveyTypeLayer: SammoSurveyTypeLayer + surveyTypeLayer: SammoSurveyTypeLayer, ): super().__init__(db, SURVEY_TABLE, "Survey") self.boatLayer = boatLayer diff --git a/src/core/layers/survey_type.py b/src/core/layers/survey_type.py index 468d9e74..0117b8ab 100644 --- a/src/core/layers/survey_type.py +++ b/src/core/layers/survey_type.py @@ -3,7 +3,7 @@ __contact__ = "info@hytech-imaging.fr" __copyright__ = "Copyright (c) 2022 Hytech Imaging" -from qgis.core import QgsEditorWidgetSetup, QgsVectorLayer +from qgis.core import QgsVectorLayer from ..database import ( SURVEY_TYPE_TABLE, @@ -20,4 +20,4 @@ def _init(self, layer: QgsVectorLayer) -> None: self._init_widgets(layer) def _init_widgets(self, layer: QgsVectorLayer) -> None: - pass \ No newline at end of file + pass diff --git a/src/gui/export.py b/src/gui/export.py index 4c09ea0c..016c263d 100644 --- a/src/gui/export.py +++ b/src/gui/export.py @@ -293,7 +293,7 @@ def obsSpeLayerJoinInfo(self, layer: QgsVectorLayer) -> None: "name_fr", "group_fr", "family_fr", - "taxon_fr" + "taxon_fr", ] ) return speciesJoinInfo diff --git a/src/gui/settings.py b/src/gui/settings.py index 47bdb730..b2a8ecc0 100644 --- a/src/gui/settings.py +++ b/src/gui/settings.py @@ -79,13 +79,11 @@ def surveyEdit(self): if not vl.featureCount(): feat = QgsVectorLayerUtils.createFeature(vl) vl.addFeature(feat) - if ( - vl in [ + if vl in [ self.session.surveyTypeLayer, self.session.boatLayer, - self.session.plateformLayer - ] - ): + self.session.plateformLayer, + ]: dlg = QDialog(self) dlg.setModal(True) dlg.setWindowTitle(vl.name())