diff --git a/python/ribasim/ribasim/styles.py b/python/ribasim/ribasim/styles.py index af0e49f59..21c6ee7db 100644 --- a/python/ribasim/ribasim/styles.py +++ b/python/ribasim/ribasim/styles.py @@ -92,7 +92,7 @@ def _add_styles_to_geopackage(gpkg_path: Path, layer: str): conn.execute(CREATE_TABLE_SQL) conn.execute(INSERT_CONTENTS_SQL) - style_name = f"{layer.replace(" / ", "_")}Style" + style_name = f"{layer.replace(' / ', '_')}Style" style_qml = STYLES_DIR / f"{style_name}.qml" style_sld = STYLES_DIR / f"{style_name}.sld" diff --git a/ribasim_qgis/core/nodes.py b/ribasim_qgis/core/nodes.py index 70e85f6d0..dd8cf4291 100644 --- a/ribasim_qgis/core/nodes.py +++ b/ribasim_qgis/core/nodes.py @@ -124,7 +124,7 @@ def set_read_only(self) -> None: @property def renderer(self) -> QgsCategorizedSymbolRenderer: - fn = STYLE_DIR / f"{self.input_type().replace(" / ", "_")}Style.sld" + fn = STYLE_DIR / f"{self.input_type().replace(' / ', '_')}Style.sld" if fn.is_file(): document = QDomDocument() document.setContent(fn.read_text())