Skip to content

Commit

Permalink
Refactor OEP connection string in config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joda9 committed Sep 18, 2024
1 parent 05ac62e commit 0587e90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions edisgo/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,9 @@ def get_database_alias_dictionaries(self) -> tuple[dict[str, str], dict[str, str
- schema_mapping: A dictionary mapping source schema names to target schema
names.
"""
OEP_CONNECTION = "postgresql+oedialect://{user}:{token}@{platform}"
OEP_CONNECTION = "postgresql+oedialect://:@{platform}"
platform = "toep.iks.cs.ovgu.de"
user = "joda9"
token = os.environ.get("TOEP_API_TOKEN")
conn_str = OEP_CONNECTION.format(user=user, token=token, platform=platform)
conn_str = OEP_CONNECTION.format(platform=platform)
engine = sa.create_engine(conn_str)
schema_name = "model_draft" # Replace with the actual schema name if needed
module_name = f"saio.{schema_name}"
Expand Down

0 comments on commit 0587e90

Please sign in to comment.