init CTFd source
This commit is contained in:
14
import.py
Normal file
14
import.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
python import.py export.zip
|
||||
"""
|
||||
from CTFd import create_app
|
||||
from CTFd.utils.exports import import_ctf
|
||||
|
||||
import sys
|
||||
|
||||
app = create_app()
|
||||
with app.app_context():
|
||||
print(
|
||||
"This file will be deleted in CTFd v4.0. Switch to using `python manage.py import_ctf`"
|
||||
)
|
||||
import_ctf(sys.argv[1])
|
||||
Reference in New Issue
Block a user