From 6d192a7c142668c58aaf9b3a44c619002a7e77f3 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 20 Dec 2019 03:26:19 +0100 Subject: [PATCH] Fix NameError in 1_2_0_upgrade_2_0_0.py Fixes a NameError in `1_2_0_upgrade_2_0_0.py` --- migrations/1_2_0_upgrade_2_0_0.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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':