Files
CTFd/import.py
Kevin Chung 66ff9c0b91 Add import export commands to manage.py (#1723)
* Add `import_ctf` and `export_ctf` commands to `manage.py`
* Deprecate `import.py` and `export.py`
* Works on #1629
2020-11-16 20:24:42 -05: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])