From a8a1f5d42ede1368fc4da105067e3b7a5eabf057 Mon Sep 17 00:00:00 2001 From: Kingu Date: Mon, 20 Apr 2020 23:54:20 +0200 Subject: [PATCH] fix windows version check --- clients/windows.py | 2 +- start.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/windows.py b/clients/windows.py index b7b3c49..1a4ee75 100644 --- a/clients/windows.py +++ b/clients/windows.py @@ -71,7 +71,7 @@ def getEditions(template): # get table cells then use appropriate cell containg the end of support date found = re.findall(r'(.*?)', extracted) if len(found)>0: - item.ends = datetime.strptime(found[2], '%B %d, %Y').date() + item.ends = datetime.strptime(found[2].strip('*'), '%B %d, %Y').date() return result diff --git a/start.py b/start.py index 07f47e8..6975c24 100644 --- a/start.py +++ b/start.py @@ -10,14 +10,14 @@ from datetime import datetime, date import vergrabber -__version__ = '3.3.3' +__version__ = '3.3.4' __author__ = 'Tomasz Krol' __author_email__ = 'vergrabber@kingu.pl' debug = False debug_module = None # debug = True -# debug_module = 'mysql' +# debug_module = 'windows' def dumper(obj): if isinstance(obj, date) or isinstance(obj, datetime):