diff --git a/migrations/1_2_0_upgrade_2_0_0.py b/migrations/1_2_0_upgrade_2_0_0.py index a25e0f9..2c84d76 100644 --- a/migrations/1_2_0_upgrade_2_0_0.py +++ b/migrations/1_2_0_upgrade_2_0_0.py @@ -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':