Skip to content

Commit

Permalink
bugfix + rename cve info collection to cves
Browse files Browse the repository at this point in the history
  • Loading branch information
PidgeyL committed Feb 10, 2017
1 parent 820b453 commit 6424ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/db_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ def endElement(self, name):
(f, r) = Configuration.getFile(Configuration.getFeedURL('cve') + getfile)
except:
sys.exit("Cannot open url %s. Bad URL or not connected to the internet?"%(Configuration.getFeedURL("cve") + getfile))
i = db.getInfo("cve")
i = db.getInfo("cves")
last_modified = parse_datetime(r.headers['last-modified'], ignoretz=True)
if i is not None:
if last_modified == i['last-modified']:
print("Not modified")
sys.exit(0)
db.setColUpdate("cve", last_modified)
db.setColUpdate("cves", last_modified)

# get your parser on !!
parser = make_parser()
Expand Down

0 comments on commit 6424ac8

Please sign in to comment.