Skip to content

Commit a57781c

Browse files
authored
Fix remove db from connection string (CTFd#2372)
Fix ping.py calling .set instead of ._replace
1 parent 70b26b0 commit a57781c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Null out the database so raw_connection doesnt error if it doesnt exist
1919
# CTFd will create the database if it doesnt exist
20-
url = url.set(database=None)
20+
url = url._replace(database=None)
2121

2222
# Wait for the database server to be available
2323
engine = create_engine(url)

0 commit comments

Comments
 (0)