mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 09:30:31 +00:00
Update db.py
This commit is contained in:
parent
da83af092a
commit
3b5be5dbc4
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user