aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPetr Svenda2020-10-18 10:38:14 +0200
committerPetr Svenda2020-10-18 10:38:14 +0200
commitb5eed7100709fa49360e40a9a9b9e18251e2ac25 (patch)
treea10885dfb699e60fc3e709c14eb5e93907d61fdd
parent2373b824ff7b69dd54b26b02286ac80dfb11923d (diff)
downloadsec-certs-b5eed7100709fa49360e40a9a9b9e18251e2ac25.tar.gz
sec-certs-b5eed7100709fa49360e40a9a9b9e18251e2ac25.tar.zst
sec-certs-b5eed7100709fa49360e40a9a9b9e18251e2ac25.zip
fixed incorrect generation of pp usege in years
-rw-r--r--src/analyze_certificates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze_certificates.py b/src/analyze_certificates.py
index e81413e1..cc0beba4 100644
--- a/src/analyze_certificates.py
+++ b/src/analyze_certificates.py
@@ -511,7 +511,7 @@ def analyze_cert_years_frequency(all_cert_items, filter_label):
pp_id = 'No Protection Profile'
else:
pp_id = 'Protection Profile'
- if category not in pp_date.keys():
+ if pp_id not in pp_date.keys():
pp_date[pp_id] = {}
for year in range(START_YEAR, END_YEAR):
pp_date[pp_id][year] = []