mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user