Files
CTFd/import.py
gkr 2e06f92c64
Some checks are pending
Linting / Linting (3.11) (push) Waiting to run
Mirror core-theme / mirror (push) Waiting to run
init CTFd source
2025-12-25 09:39:21 +08:00

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