]> git.phdru.name Git - m_librarian.git/blobdiff - scripts/ml-web.py
Feat(web): Show books by an author
[m_librarian.git] / scripts / ml-web.py
index f5a579e006718b3be33d1ea85ca3856a4e00851a..bccac810821833844272fd2bf90eae29afbc73ee 100755 (executable)
@@ -6,6 +6,7 @@ import webbrowser
 
 from bottle import thread  # portable import
 
+from m_librarian.db import open_db
 import m_librarian.web.app  # noqa: F401 imported but unused
 from m_librarian.web.server import run_server
 from m_librarian.web.utils import get_open_port
@@ -26,5 +27,6 @@ if __name__ == '__main__':
     else:
         port = get_open_port()
 
+    open_db()
     thread.start_new_thread(start_browser, (port,))
     run_server(port=port)