Skip to content

Commit 1c3023a

Browse files
committed
Added color coding
1 parent f30fbfc commit 1c3023a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
setuptools
22
requests
3-
python-dotenv
3+
python-dotenv
4+
termcolor

scripts/helpers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
__author__ = "Mario Rojas"
1414
__license__ = "BSD 3-clause"
15-
__version__ = "1.2.1"
15+
__version__ = "1.3.0"
1616
__maintainer__ = "Mario Rojas"
1717
__status__ = "Production"
1818

@@ -117,7 +117,6 @@ def colored_print(priority):
117117
def print_and_write(working_file, cve_id, priority, epss, cvss_base_score, cvss_version, cvss_severity, cisa_kev, verbose):
118118

119119
color_priority = colored_print(priority)
120-
stripped_len = len(priority)
121120

122121
if verbose:
123122
print(f"{cve_id:<18}{color_priority:<22}{epss:<9}{cvss_base_score:<6}{cvss_version:<10}{cvss_severity:<10}{cisa_kev}")

0 commit comments

Comments
 (0)