mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-21 06:04:29 +01:00
Fix NameError in 1_2_0_upgrade_2_0_0.py
Fixes a NameError in `1_2_0_upgrade_2_0_0.py`
This commit is contained in:
committed by
Kevin Chung
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':
|
||||
|
||||
Reference in New Issue
Block a user