From 3d7f2407b617ea7216e480acb1a8e56c2f09befe Mon Sep 17 00:00:00 2001 From: Brian Read Date: Sun, 16 Jun 2024 18:54:14 +0100 Subject: [PATCH] Remove some debug prints --- root/usr/bin/mailstats.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/root/usr/bin/mailstats.py b/root/usr/bin/mailstats.py index 7a4b7b2..c8ea283 100644 --- a/root/usr/bin/mailstats.py +++ b/root/usr/bin/mailstats.py @@ -495,16 +495,16 @@ def read_html_from_file(filepath): with open(filepath, 'r', encoding='utf-8') as file: html_contents = file.read() print("reading from html file") - print(len(html_contents)) + #print(len(html_contents)) # Get Filepath css_path = os.path.dirname(filepath)+"/../css/mailstats.css" - print(css_path) + #print(css_path) # Read in CSS with open(css_path, 'r', encoding='utf-8') as file: css_contents = file.read() - print(len(css_contents)) + #print(len(css_contents)) html_contents = insert_string_after(html_contents,"\n"+css_contents,"") - print(len(html_contents)) + #print(len(html_contents)) return html_contents def read_text_from_file(filepath): @@ -998,6 +998,3 @@ if __name__ == "__main__": ) except Exception as e: print(f"Email Exception {e}") - - -