From e3c1d9853140442bbd8c4965f7c8ec6734e3e761 Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 10 Aug 2018 19:36:43 -0400 Subject: [PATCH] Fix for new notifier --- update_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_db.py b/update_db.py index da027f6b2..05d37343f 100644 --- a/update_db.py +++ b/update_db.py @@ -174,7 +174,7 @@ if os.path.exists(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db')) try: c.execute('DELETE FROM table_settings_notifier WHERE rowid > 24') #Modify this if we add more notification provider rows = c.execute('SELECT name FROM table_settings_notifier WHERE name = "Discord"').fetchall() - if rows == "[]": + if len(rows) == 0: providers = ['Discord', 'E-Mail', 'Emby', 'IFTTT', 'Stride', 'Windows'] for provider in providers: c.execute('INSERT INTO `table_settings_notifier` (name, enabled) VALUES (?, ?);', (provider, '0'))