From 377a627c790be70b41d4995b8c4ecddca4a781e2 Mon Sep 17 00:00:00 2001 From: Stanislav BoboĊˆ Date: Thu, 15 Oct 2020 18:42:43 +0200 Subject: making it work without talking too much --- src/fips_certificates.py | 10 +++++----- 1 file 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 -- cgit v1.3.1 From f27a6706b9e77d9802027c85dc0cbcc98218ffd2 Mon Sep 17 00:00:00 2001 From: adamjanovsky Date: Fri, 16 Oct 2020 08:31:59 +0200 Subject: added requirements.txt --- requirements.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..43e7ade0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,12 @@ +certifi==2020.6.20 +cycler==0.10.0 +graphviz==0.14.2 +kiwisolver==1.2.0 +matplotlib==3.3.2 +numpy==1.19.2 +Pillow==8.0.0 +pyparsing==2.4.7 +PyPDF2==1.26.0 +python-dateutil==2.8.1 +six==1.15.0 +tabulate==0.8.7 -- cgit v1.3.1