diff options
| author | Adam Janovsky | 2021-04-20 11:00:41 +0200 |
|---|---|---|
| committer | Adam Janovsky | 2021-04-20 11:00:41 +0200 |
| commit | 9028613aac7441c8eaf1030800481b9130ef312c (patch) | |
| tree | 6e27f3ff48d7e1b605f4102fe3850aa02bdca375 | |
| parent | 902638c5ed0e3aed572925c4ef9124d8733612fb (diff) | |
| download | sec-certs-9028613aac7441c8eaf1030800481b9130ef312c.tar.gz sec-certs-9028613aac7441c8eaf1030800481b9130ef312c.tar.zst sec-certs-9028613aac7441c8eaf1030800481b9130ef312c.zip | |
fix in cpe labeling progress save
| -rw-r--r-- | sec_certs/dataset.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sec_certs/dataset.py b/sec_certs/dataset.py index 0539181e..b3a836af 100644 --- a/sec_certs/dataset.py +++ b/sec_certs/dataset.py @@ -753,9 +753,9 @@ class CCDataset(Dataset, ComplexSerializableType): matches = [x.heuristics.cpe_matches[y][1] for y in inpts] self[x.dgst].heuristics.verified_cpe_matches = matches - if i != 0 and not i % 10 and update_json: - print(f'Saving progress.') - self.to_json() + if i != 0 and not i % 10 and update_json: + print(f'Saving progress.') + self.to_json() certs_to_verify: List[CommonCriteriaCert] = [x for x in self if (x.heuristics.cpe_matches and not x.heuristics.verified_cpe_matches)] logger.info('Manually verifying CPE matches') |
