Prevent multiple version writing

This commit is contained in:
angelblue05 2016-10-20 02:14:27 -05:00
parent 31755845fc
commit 673315e46c
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,7 @@ class Embydb_Functions():
def get_version(self, version=None):
if version is not None:
self.embycursor.execute("DELETE FROM version")
query = "INSERT INTO version(idVersion) VALUES (?)"
self.embycursor.execute(query, (version,))
else:

View file

@ -54,7 +54,7 @@ class Items(object):
if total == 0:
return False
log.info("Processing %s: %s", process, items)
#log.info("Processing %s: %s", process, items)
if pdialog:
pdialog.update(heading="Processing %s: %s items" % (process, total))