Fixing unlocking hints for challenges with unicode names (#383)

* Fixing unlocking hints for challenges with unicode names
* Add tests for unlocking hints with no cost
This commit is contained in:
Kevin Chung
2017-09-09 00:17:48 -04:00
committed by GitHub
parent 888b830488
commit d49f37eac4
4 changed files with 60 additions and 1 deletions

View File

@@ -3,6 +3,14 @@ from CTFd.models import *
from sqlalchemy_utils import database_exists, create_database, drop_database
from sqlalchemy.engine.url import make_url
import datetime
import six
if six.PY2:
text_type = unicode
binary_type = str
else:
text_type = str
binary_type = bytes
def create_ctfd(ctf_name="CTFd", name="admin", email="admin@ctfd.io", password="password", setup=True):