[Oval-commits] r178 - trunk/oval-server/dba
Pavel Vinogradov
blaze-guest at alioth.debian.org
Mon Aug 20 18:44:07 UTC 2007
Author: blaze-guest
Date: 2007-08-20 18:44:07 +0000 (Mon, 20 Aug 2007)
New Revision: 178
Modified:
trunk/oval-server/dba/dba.py
Log:
Fixed in update affected table
Modified: trunk/oval-server/dba/dba.py
===================================================================
--- trunk/oval-server/dba/dba.py 2007-08-20 18:41:50 UTC (rev 177)
+++ trunk/oval-server/dba/dba.py 2007-08-20 18:44:07 UTC (rev 178)
@@ -75,7 +75,7 @@
try:
id = self.cursor.fetchall()[0][0]
- self.cursor.execute ('UPDATE afected set status = %d, vulnTimestamp = CURRENT_TIMESTAMP WHERE id = %d' % (status, id))
+ self.cursor.execute ('UPDATE affected set status = %d, vulnTimestamp = CURRENT_TIMESTAMP WHERE id = %d' % (status, id))
except IndexError:
self.cursor.execute ('INSERT INTO affected VALUES (NULL, %d, %d, CURRENT_TIMESTAMP, %d)' %
(agentID, vulnID, status))
More information about the Oval-commits
mailing list