mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Fix remove db from connection string (#2372)
Fix ping.py calling .set instead of ._replace
This commit is contained in:
2
ping.py
2
ping.py
@@ -17,7 +17,7 @@ if url.drivername.startswith("sqlite"):
|
||||
|
||||
# Null out the database so raw_connection doesnt error if it doesnt exist
|
||||
# CTFd will create the database if it doesnt exist
|
||||
url = url.set(database=None)
|
||||
url = url._replace(database=None)
|
||||
|
||||
# Wait for the database server to be available
|
||||
engine = create_engine(url)
|
||||
|
||||
Reference in New Issue
Block a user