Skip to content

Commit

Permalink
Fix string escape chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed Aug 12, 2024
1 parent 773bb50 commit 548f2bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion ribasim_qgis/core/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 548f2bb

Please sign in to comment.