enable max-attempts per challenge setting

This commit is contained in:
Sean Meyer
2015-05-18 11:31:43 +08:00
parent 945e2148be
commit db687b6c25
5 changed files with 53 additions and 2 deletions

View File

@@ -62,6 +62,10 @@ def init_views(app):
html = request.form['html']
page = Pages('index', html)
#max attempts per challenge
max_tries = Config("max_tries",0)
## Start time
start = Config('start', None)
end = Config('end', None)
@@ -77,6 +81,7 @@ def init_views(app):
db.session.add(ctf_name)
db.session.add(admin)
db.session.add(page)
db.session.add(max_tries)
db.session.add(start)
db.session.add(end)
db.session.add(view_challenges_unregistered)