mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Fix API
This commit is contained in:
parent
8692a0dbbf
commit
2fbb3adb08
2 changed files with 15 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
import logging
|
||||
|
||||
from aiohttp import web
|
||||
|
|
@ -115,7 +117,13 @@ app.add_routes([
|
|||
|
||||
|
||||
async def run():
|
||||
app["pool"] = await db.connect()
|
||||
app["pool"] = await db.connect(
|
||||
os.environ["DATABASE_USER"],
|
||||
os.environ["DATABASE_PASS"],
|
||||
os.environ["DATABASE_NAME"],
|
||||
os.environ["DATABASE_HOST"],
|
||||
int(os.environ["DATABASE_PORT"])
|
||||
)
|
||||
return app
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue