Module: upsert drbotzo_modules
This commit is contained in:
parent
4566d1734e
commit
9ecd66f94a
|
@ -212,7 +212,7 @@ class Module(object):
|
|||
|
||||
db = self.get_db()
|
||||
try:
|
||||
db.execute('UPDATE drbotzo_modules SET version = ? WHERE module = ?', (version, modulename))
|
||||
db.execute('INSERT OR REPLACE INTO drbotzo_modules (version, module) VALUES (?, ?)', (version, modulename))
|
||||
db.commit()
|
||||
db.close()
|
||||
except sqlite3.Error as e:
|
||||
|
|
Loading…
Reference in New Issue