From ec99a2f3d985f65af7b4ac28cd7e381eccb72cd9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Tue, 14 Jun 2022 10:29:09 -0700 Subject: [PATCH] Fix updating cron default value in newsletter table --- plexpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 67c9138d..861ff8fc 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -2047,7 +2047,7 @@ def dbcheck(): # Upgrade newsletters table from earlier versions try: result = c_db.execute('SELECT SQL FROM sqlite_master WHERE type="table" AND name="newsletters"').fetchone() - if '"cron"\tTEXT NOT NULL DEFAULT "0 0 * * 0"' in result[0]: + if 'TEXT NOT NULL DEFAULT "0 0 * * 0"' in result[0]: logger.debug("Altering database. Updating default cron value in newsletters table.") c_db.execute( 'CREATE TABLE newsletters_temp (id INTEGER PRIMARY KEY AUTOINCREMENT, '