mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor Database.py to conditionally set the database URI
This commit is contained in:
parent
f180404c8d
commit
1263484e52
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ class Database:
|
|||
match.group("database"), f"{match.group('database')}+psycopg"
|
||||
) # ? This is strongly recommended as psycopg is the new way to connect to postgresql
|
||||
|
||||
self.database_uri = sqlalchemy_string
|
||||
self.database_uri = "" if sqlalchemy_string == sqlalchemy_string_readonly else sqlalchemy_string
|
||||
self.database_uri_readonly = sqlalchemy_string_readonly
|
||||
error = False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue