From 9de7193cab4e22b5bec3c165a8ec870d8097a4a0 Mon Sep 17 00:00:00 2001 From: OSINT-TECHNOLOGIES <77023667+OSINT-TECHNOLOGIES@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:47:28 +0300 Subject: [PATCH] HTML reporting module code clean up --- reporting_modules/html_report_creation.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/reporting_modules/html_report_creation.py b/reporting_modules/html_report_creation.py index 0462d03..4cfd760 100644 --- a/reporting_modules/html_report_creation.py +++ b/reporting_modules/html_report_creation.py @@ -1,23 +1,19 @@ -from colorama import Fore import sys + sys.path.append('service') sys.path.append('service//pdf_report_templates') -from logs_processing import logging +from logs_processing import logging import db_processing as db import files_processing as fp try: - import requests from datetime import datetime from jinja2 import Environment, FileSystemLoader - from xhtml2pdf import pisa import os - from io import BytesIO from colorama import Fore, Style import webbrowser import sqlite3 - import platform except ImportError as e: print(Fore.RED + "Import error appeared. Reason: {}".format(e) + Style.RESET_ALL) sys.exit()