Skip to content

Commit

Permalink
refactor(bot): Update database environment variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
alexraskin committed Jun 14, 2024
1 parent 4291985 commit 66677f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def __init__(self, *args, **options) -> None:
self.version: str = "1.0.6"
self.db_url: URL = URL.create(
drivername="postgresql+asyncpg",
username=os.getenv("POSTGRES_USER"),
password=os.getenv("POSTGRES_PASSWORD"),
host=os.getenv("POSTGRES_HOST"),
port=os.getenv("POSTGRES_PORT"),
username=os.getenv("PGUSER"),
password=os.getenv("PGPASSWORD"),
host=os.getenv("PGHOST"),
port=os.getenv("PGPORT"),
database=os.getenv("POSTGRES_DB"),
)
self.engine: create_async_engine = create_async_engine(
Expand Down

0 comments on commit 66677f6

Please sign in to comment.