diff options
| author | Stanislav Boboň | 2020-10-15 18:42:43 +0200 |
|---|---|---|
| committer | Stanislav Boboň | 2020-10-15 18:42:43 +0200 |
| commit | 377a627c790be70b41d4995b8c4ecddca4a781e2 (patch) | |
| tree | ef56bc28fcd3225cd0425b4347ac710fd23df976 | |
| parent | 8d6dcd36b428ba93577f07023d68b154217c660f (diff) | |
| download | sec-certs-377a627c790be70b41d4995b8c4ecddca4a781e2.tar.gz sec-certs-377a627c790be70b41d4995b8c4ecddca4a781e2.tar.zst sec-certs-377a627c790be70b41d4995b8c4ecddca4a781e2.zip | |
making it work without talking too much
| -rw-r--r-- | src/fips_certificates.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fips_certificates.py b/src/fips_certificates.py index 5d7380ee..c7486906 100644 --- a/src/fips_certificates.py +++ b/src/fips_certificates.py @@ -351,14 +351,14 @@ def repair_pdf_page_count(file): def extract_certs_from_tables(list_of_files, html_items): global count - list_of_files = json.loads(open(FIPS_RESULTS_DIR + 'bakup/broken_files.json').read()) + not_decoded = [] for REDHAT_FILE in list_of_files: if '.txt' not in REDHAT_FILE: continue - # - # if html_items[extract_filename(REDHAT_FILE[:-8])]['tables_done']: - # continue + + if html_items[extract_filename(REDHAT_FILE[:-8])]['tables_done']: + continue with open(REDHAT_FILE, 'r') as f: try: @@ -392,7 +392,7 @@ def extract_certs_from_tables(list_of_files, html_items): html_items[extract_filename(REDHAT_FILE[:-8])]['fips_algorithms'] = lst else: html_items[extract_filename(REDHAT_FILE[:-8])]['fips_algorithms'] += lst - print(lst) + html_items[extract_filename(REDHAT_FILE[:-8])]['tables_done'] = True return not_decoded |
