Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent 1d76895 commit 331fce0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/teksi_wastewater/interlis/utils/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import tempfile
import uuid
from typing import List

from qgis.core import QgsExpression

from ...utils.database_utils import DatabaseUtils
from ...utils.plugin_utils import logger

Expand Down Expand Up @@ -61,7 +63,7 @@ def get_pgconf_as_ili_args() -> List[str]:
args.extend(["--dbparams", '"' + os.path.join(dbparams_path, "dbparams.txt") + '"'])
if not pgconf["user"]:
# allow loading PGUSER from overriden env variables
expression = QgsExpression('@PGUSER')
expression = QgsExpression("@PGUSER")
pguser = expression.evaluate()
args.extend(["--dbusr", f'"{pguser}"'])
return args
Expand Down

0 comments on commit 331fce0

Please sign in to comment.