mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
* Add `import_ctf` and `export_ctf` commands to `manage.py` * Deprecate `import.py` and `export.py` * Works on #1629
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])
|