Skip to content

Commit f0e46ce

Browse files
committed
Simplify status condition in extract_cves_from_tracker #6
Signed-off-by: Thomas Druez <tdruez@nexb.com>
1 parent 11c7954 commit f0e46ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scraper/debian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def extract_cves_from_tracker(html):
6969
package_name.append(pkg)
7070

7171
for tag in soup.find_all('td'):
72-
if 'medium**' in tag or 'medium' in tag or 'low' in tag or 'low**' in tag or 'not yet assigned' in tag:
72+
if 'medium' in tag or 'low' in tag or 'not yet assigned' in tag:
7373
vulnerability_status.append(tag.text)
7474
elif tag.find_all('span', {'class': 'red'}) and tag.text == 'high**' or tag.text == 'high':
7575
vulnerability_status.append(tag.text)

0 commit comments

Comments
 (0)