Fix remove db from connection string (#2372)

Fix ping.py calling .set instead of ._replace
This commit is contained in:
senacor-swr
2023-07-21 18:37:53 +02:00
committed by GitHub
parent 70b26b06d8
commit a57781c616

View File

@@ -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)