about summary refs log tree commit diff
path: root/zachwalk.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-02-07 23:08:30 -0500
committerZach DeCook <zachdecook@librem.one>2021-02-07 23:08:30 -0500
commit6ae010283fa78e7b4be3e63cc0a27d6b3447bbad (patch)
tree8b669695655d547d15b88c93144223980b3c7b4b /zachwalk.py
parent2bf26df28f31e4279ee3339b12858f302f2c6aa5 (diff)
downloadzachwalk-6ae010283fa78e7b4be3e63cc0a27d6b3447bbad.tar.gz
parsing: help out by adding space before colon
Diffstat (limited to 'zachwalk.py')
-rwxr-xr-xzachwalk.py4
1 files changed, 3 insertions, 1 deletions
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: