Commit 3b5be5db authored by OzzieIsaacs's avatar OzzieIsaacs Committed by GitHub

Update db.py

parent da83af09
...@@ -20,7 +20,7 @@ def title_sort(title): ...@@ -20,7 +20,7 @@ def title_sort(title):
dbpath = os.path.join(config.DB_ROOT, "metadata.db") 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 = engine.connect()
conn.connection.create_function('title_sort', 1, title_sort) conn.connection.create_function('title_sort', 1, title_sort)
Base = declarative_base() Base = declarative_base()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment