Fix (Ignore): You must not use 8-bit bytestrings

This commit is contained in:
AnthorNet 2018-01-05 16:41:19 +01:00
parent 32ed86da91
commit ad1d133e66

View File

@ -160,6 +160,7 @@ def getTotalSchemas():
def getSchemas():
response.set_header("Access-Control-Allow-Origin", "*")
db = sqlite3.connect(Settings.MONITOR_DB)
db.text_factory = lambda x: unicode(x, "utf-8", "ignore")
schemas = collections.OrderedDict()
dateStart = request.GET.get('dateStart', str(date('%Y-%m-%d'))).strip()