From 3b5be5dbc4cdc60a78752694e55846e324942768 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Wed, 3 Aug 2016 07:37:53 +0200 Subject: [PATCH] Update db.py --- cps/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index 2cebe7bf..a621a5ae 100755 --- a/cps/db.py +++ b/cps/db.py @@ -20,7 +20,7 @@ def title_sort(title): dbpath = os.path.join(config.DB_ROOT, "metadata.db") -engine = create_engine('sqlite:///{0}'.format(dbpath), echo=False) +engine = create_engine('sqlite:///{0}'.format(dbpath.encode('utf-8')), echo=False) conn = engine.connect() conn.connection.create_function('title_sort', 1, title_sort) Base = declarative_base()