diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-02-07 23:08:30 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-02-07 23:08:30 -0500 |
| commit | 6ae010283fa78e7b4be3e63cc0a27d6b3447bbad (patch) | |
| tree | 8b669695655d547d15b88c93144223980b3c7b4b /zachwalk.py | |
| parent | 2bf26df28f31e4279ee3339b12858f302f2c6aa5 (diff) | |
| download | zachwalk-6ae010283fa78e7b4be3e63cc0a27d6b3447bbad.tar.gz | |
parsing: help out by adding space before colon
Diffstat (limited to 'zachwalk.py')
| -rwxr-xr-x | zachwalk.py | 4 |
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: |
