diff --git a/import.py b/import.py new file mode 100644 index 0000000..5819462 --- /dev/null +++ b/import.py @@ -0,0 +1,9 @@ +from CTFd import create_app +from CTFd.utils import import_ctf + +import zipfile +import sys + +app = create_app() +with app.app_context(): + import_ctf(sys.argv[1])