[Oval-commits] r180 - trunk/oval-server/dba
Pavel Vinogradov
blaze-guest at alioth.debian.org
Mon Aug 20 18:52:25 UTC 2007
Author: blaze-guest
Date: 2007-08-20 18:52:25 +0000 (Mon, 20 Aug 2007)
New Revision: 180
Modified:
trunk/oval-server/dba/dba.py
Log:
Fix sql query
Modified: trunk/oval-server/dba/dba.py
===================================================================
--- trunk/oval-server/dba/dba.py 2007-08-20 18:44:39 UTC (rev 179)
+++ trunk/oval-server/dba/dba.py 2007-08-20 18:52:25 UTC (rev 180)
@@ -112,10 +112,11 @@
"""SELECT vulnLocation FROM vulnerabilities
LEFT JOIN affected
ON vulnerabilities.vulnDSA = affected.vulnDSA
- WHERE affected.agentID = %d AND vulnerabilities.vulnTimestamp > affected.vulnTimestamp OR affected.vulnTimestamp IS NULL;
+ WHERE affected.agentID = %d AND vulnerabilities.vulnTimestamp > affected.vulnTimestamp OR affected.vulnTimestamp IS NULL OR affected.status = 1;
""" % agentID)
return self.cursor.fetchall()
if __name__ == "__main__":
- sql = dba('/tmp/oval-server.db')
+ dba.dbPath ='/home/blaze/tmp/oval/server/oval-server.db'
+ sql = dba()
print sql.makeDefList(1)
\ No newline at end of file
More information about the Oval-commits
mailing list