15 lines
303 B
Python
15 lines
303 B
Python
"""
|
|
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])
|