Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Leftover references to severitylevel

  • Loading branch information...
commit 616b237690bf7b719f9133e8772c6d5852c37e9d 1 parent 20f02e8
@dagwieers authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  README
  2. +2 −2 sarahdbo.py
  3. +1 −1  sarahinfo.py
View
2  README
@@ -50,7 +50,7 @@ things in bash, like:
./sarahsql.py 'select distinct filename from rpm where advid == "RHSA-2005:039" order by filename'
### Show last 10 updated advisories
- ./sarahsql.py 'select advid, issuedate, updatedate, severitylevel from adv order by updatedate' | tail
+ ./sarahsql.py 'select advid, issuedate, updatedate, severity from adv order by updatedate' | tail
Help is welcome to extend sarah much further. The TODO file is the first stop for
interesting parties.
View
4 sarahdbo.py
@@ -155,9 +155,9 @@
### RHBAs and RHEAs do not have a severity level
if advrec['type'] in ('RHBA', 'RHEA'):
- advrec['severitylevel'] = None
+ advrec['severity'] = None
- if not advrec.has_key('severitylevel'): advrec['severitylevel'] = 'unknown'
+ if not advrec.has_key('severity'): advrec['severity'] = 'unknown'
if not advrec.has_key('rhgroup'): advrec['rhgroup'] = None
if not advrec.has_key('keywords'): advrec['keywords'] = None
if not advrec.has_key('obsoletes'): advrec['obsoletes'] = None
View
2  sarahinfo.py
@@ -100,7 +100,7 @@
#for all in cur.fetchall():
# print all
-#cur.execute('select distinct advid from adv where severitylevel = "unknown" order by advid')
+#cur.execute('select distinct advid from adv where severity = "unknown" order by advid')
#print cur.fetchall()
#cur.execute('select * from pro')
Please sign in to comment.
Something went wrong with that request. Please try again.