From 0afc200a967c6b14fe676f5b957ebeefaa29b71a Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 23 Oct 2016 07:11:08 -0500 Subject: [PATCH] Fix database version migration --- resources/lib/librarysync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 4de6e5c5..942d0ffa 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -914,7 +914,7 @@ class LibrarySync(threading.Thread): emby_db = embydb.Embydb_Functions(embycursor) currentVersion = emby_db.get_version() ###$ Begin migration $### - if currentVersion is None: + if not currentVersion: currentVersion = emby_db.get_version(settings('dbCreatedWithVersion') or self.clientInfo.get_version()) embyconn.commit() log.info("Migration of database version completed")