1 Star 1 Fork 0

totalo / CTFd_zh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
import.py 336 Bytes
一键复制 编辑 原始数据 按行查看 历史
totalo 提交于 2018-07-18 09:34 . Initial commit
"""
python import.py export.zip challenges,teams,both,metadata
"""
from CTFd import create_app
from CTFd.utils import import_ctf
import sys
app = create_app()
with app.app_context():
if len(sys.argv) == 3:
segments = sys.argv[2].split(',')
else:
segments = None
import_ctf(sys.argv[1], segments=segments)
Python
1
https://gitee.com/totalo/CTFd_zh.git
git@gitee.com:totalo/CTFd_zh.git
totalo
CTFd_zh
CTFd_zh
master

搜索帮助