Module: upsert drbotzo_modules

This commit is contained in:
Brian S. Stephan 2011-07-06 21:51:30 -05:00
parent 4566d1734e
commit 9ecd66f94a
1 changed files with 1 additions and 1 deletions

View File

@ -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: