Skip to content

Commit

Permalink
Move comment to a better location
Browse files Browse the repository at this point in the history
Co-authored-by: Nick <[email protected]>
  • Loading branch information
dav3r and mcdonnnj authored Jun 8, 2022
1 parent ea1a9dc commit 5212891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cyhy-nvdsync
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def parse_json(db, json_stream):

for entry in data.get("CVE_Items", []):
cve_id = entry["cve"]["CVE_data_meta"]["ID"]
# Reject CVEs that don't have baseMetricV2 or baseMetricV3 CVSS data
if ("baseMetricV2" or "baseMetricV3") not in entry["impact"]:
# Reject CVEs that don't have baseMetricV2 or baseMetricV3 CVSS data
# Make sure they are removed from our db.
db.CVEDoc.collection.remove({"_id": cve_id}, safe=False)
print "x",
Expand Down

0 comments on commit 5212891

Please sign in to comment.