X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=blobdiff_plain;f=scripts%2Fml-web.py;h=bccac810821833844272fd2bf90eae29afbc73ee;hp=f5a579e006718b3be33d1ea85ca3856a4e00851a;hb=c36e520339e5c0043fa6861f43ff5915999eb980;hpb=ee485bf9817d65fb5b7641a6638b931cf7747b13 diff --git a/scripts/ml-web.py b/scripts/ml-web.py index f5a579e..bccac81 100755 --- a/scripts/ml-web.py +++ b/scripts/ml-web.py @@ -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)