From 84f4b0b3d94b379f7decc828b1c1f77b00f7fdc7 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 17 Feb 2021 08:51:41 -0500 Subject: description parsing: split at colon --- zachwalk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zachwalk.py') diff --git a/zachwalk.py b/zachwalk.py index a270850..1a15ddc 100755 --- a/zachwalk.py +++ b/zachwalk.py @@ -34,7 +34,7 @@ def gnd(fp): if line.strip()[0:2] == '=>': try: desc =getdesc(line) - desc=desc.replace(':',' :') #quirk for parse on drew's capsule + desc=desc.split(':')[0] #this should only have 1 'datey' part date = parse(desc,fuzzy=True).date() # todo: read lots of these and compare them return date -- cgit 1.4.1