From 6ae010283fa78e7b4be3e63cc0a27d6b3447bbad Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sun, 7 Feb 2021 23:08:30 -0500 Subject: parsing: help out by adding space before colon --- zachwalk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zachwalk.py') diff --git a/zachwalk.py b/zachwalk.py index 7c8680e..2c2c3ea 100755 --- a/zachwalk.py +++ b/zachwalk.py @@ -29,7 +29,9 @@ def gnd(fp): line=line.decode('UTF-8') if line.strip()[0:2] == '=>': try: - date = parse(getdesc(line),fuzzy=True).date() + desc =getdesc(line) + desc=desc.replace(':',' :') #quirk for parse on drew's capsule + date = parse(desc,fuzzy=True).date() # todo: read lots of these and compare them return date except: -- cgit 1.4.1