mirror of https://github.com/JohnHammond/CTFd.git
Fix NameError in 1_2_0_upgrade_2_0_0.py
Fixes a NameError in `1_2_0_upgrade_2_0_0.py`bulk-clear-sessions
parent
97f5dcaf8c
commit
6d192a7c14
|
@ -15,13 +15,13 @@ from CTFd import config, create_app
|
|||
from sqlalchemy_utils import (
|
||||
drop_database,
|
||||
)
|
||||
from six.moves import input
|
||||
from six.moves import input, string_types
|
||||
import dataset
|
||||
|
||||
def cast_bool(value):
|
||||
if value and value.isdigit():
|
||||
return int(value)
|
||||
elif value and isinstance(value, six.string_types):
|
||||
elif value and isinstance(value, string_types):
|
||||
if value.lower() == 'true':
|
||||
return True
|
||||
elif value.lower() == 'false':
|
||||
|
|
Loading…
Reference in New Issue