mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
5ce3003b Merge pull request #47 from aCursedComrade/patch-1 c9887cb1 Fix team template git-subtree-dir: CTFd/themes/core-beta git-subtree-split: 5ce3003b4d68352e629ee2d390bc999e7d6b071e
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])
|