Skip to content

Commit

Permalink
removing local path from non local db call
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Sep 18, 2024
1 parent 279c87a commit d7c8c68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edisgo/io/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def ssh_tunnel(cred: dict) -> str:
return str(server.local_bind_port)


def engine(path: Path | str, ssh: bool = False) -> Engine:
def engine(path: Path | str = None, ssh: bool = False) -> Engine:
"""
Engine for local or remote database.
Expand All @@ -167,14 +167,14 @@ def engine(path: Path | str, ssh: bool = False) -> Engine:
Database engine
"""
cred = credentials(path=path)

if not ssh:
return create_engine(
"postgresql+oedialect://:@toep.iks.cs.ovgu.de",
"postgresql+oedialect://:" "@toep.iks.cs.ovgu.de",
echo=False,
)

cred = credentials(path=path)
local_port = ssh_tunnel(cred)

return create_engine(
Expand Down

0 comments on commit d7c8c68

Please sign in to comment.