mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-20 15:24:25 +01:00
enable max-attempts per challenge setting
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user