Fix PKC version being recorded several times

- Partially fixes #566
This commit is contained in:
croneter 2018-12-03 07:59:25 +01:00
parent 28e4561461
commit 1ab1f18e07

View file

@ -161,7 +161,7 @@ def initialize():
with PlexDBBase() as plexdb: with PlexDBBase() as plexdb:
plexdb.cursor.execute(''' plexdb.cursor.execute('''
CREATE TABLE IF NOT EXISTS version( CREATE TABLE IF NOT EXISTS version(
idVersion TEXT) idVersion TEXT PRIMARY KEY)
''') ''')
plexdb.cursor.execute(''' plexdb.cursor.execute('''
INSERT OR REPLACE INTO version(idVersion) INSERT OR REPLACE INTO version(idVersion)