From 121b95df09e9bc9531bc9ad2070a3f4990191731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 27 Oct 2017 22:09:03 -0400 Subject: [PATCH] Test --- bazarr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bazarr.py b/bazarr.py index 76978e0ea..f68e9c4c3 100644 --- a/bazarr.py +++ b/bazarr.py @@ -262,6 +262,10 @@ def save_settings(): settings_general_pathmapping.extend([list(a) for a in zip(settings_general_sourcepath, settings_general_destpath)]) settings_general_branch = request.forms.get('settings_general_branch') settings_general_automatic = request.forms.get('settings_general_automatic') + if settings_general_automatic is None: + settings_general_automatic = 'False' + else: + settings_general_automatic = 'True' c.execute("UPDATE table_settings_general SET ip = ?, port = ?, base_url = ?, path_mapping = ?, log_level = ?, branch=?, auto_update=?", (settings_general_ip, settings_general_port, settings_general_baseurl, str(settings_general_pathmapping), settings_general_loglevel, settings_general_branch, settings_general_automatic)) settings_sonarr_ip = request.forms.get('settings_sonarr_ip')