server/config: fix deprecated database string format

This commit is contained in:
Shyam Sunder 2022-02-07 16:44:56 -05:00
parent a22485afda
commit 6de0a74257

View file

@ -33,7 +33,7 @@ def _docker_config() -> Dict:
"show_sql": int(os.getenv("LOG_SQL", 0)), "show_sql": int(os.getenv("LOG_SQL", 0)),
"data_url": os.getenv("DATA_URL", "data/"), "data_url": os.getenv("DATA_URL", "data/"),
"data_dir": "/data/", "data_dir": "/data/",
"database": "postgres://%(user)s:%(pass)s@%(host)s:%(port)d/%(db)s" "database": "postgresql://%(user)s:%(pass)s@%(host)s:%(port)d/%(db)s"
% { % {
"user": os.getenv("POSTGRES_USER"), "user": os.getenv("POSTGRES_USER"),
"pass": os.getenv("POSTGRES_PASSWORD"), "pass": os.getenv("POSTGRES_PASSWORD"),