From 9bfaa754e619cc0f9f1d14c9cfde12f5564f2790 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Sat, 11 Jan 2025 11:29:50 +0000 Subject: [PATCH] Take out extraneous characters from python version --- root/usr/bin/mailstats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/usr/bin/mailstats.py b/root/usr/bin/mailstats.py index 373de2b..3dc7405 100644 --- a/root/usr/bin/mailstats.py +++ b/root/usr/bin/mailstats.py @@ -1043,7 +1043,8 @@ if __name__ == "__main__": except pkg_resources.DistributionNotFound: chameleon_version = "Version information not available" python_version = sys.version - python_version = python_version[:8] + #python_version = python_version[:8] + python_version = re.match(r'^\d+\.\d+\.\d+',python_version).group(0); #Extract the version number current_datetime = datetime.now() formatted_datetime = current_datetime.strftime("%Y-%m-%d %H:%M")