From a4cbf4e5f96547c2a96bed17c6408c52e6c5344e Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 20 Dec 2017 08:43:00 -0500 Subject: [PATCH] Be sure to update DB schemas when loading main page --- bazarr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bazarr.py b/bazarr.py index 92289db93..d397460f5 100644 --- a/bazarr.py +++ b/bazarr.py @@ -115,6 +115,8 @@ def image_proxy(url): @route(base_url) def series(): + import update_db + db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30) db.create_function("path_substitution", 1, path_replace) c = db.cursor()