summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2015-01-26 21:53:32 +0000
committerSam Wenham <sam@wenhams.co.uk>2015-01-26 21:53:32 +0000
commit4560e0da84df94f09cac10798c3af996495cecb3 (patch)
tree40e9daf1b5826ba5e8fe7a768d28e2c1b3be3062 /parsers
parentf9c2e0e1709177cc6d4449b9328e921e5db9fcf9 (diff)
downloadtroggle-4560e0da84df94f09cac10798c3af996495cecb3.tar.gz
troggle-4560e0da84df94f09cac10798c3af996495cecb3.tar.bz2
troggle-4560e0da84df94f09cac10798c3af996495cecb3.zip
Revert all of this the date is needed and is a not null in the db
Diffstat (limited to 'parsers')
-rw-r--r--parsers/logbooks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index 1c8db99..4180345 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -111,7 +111,8 @@ def ParseDate(tripdate, year):
assert not mdategoof.group(3) or mdategoof.group(3) == year[:2], mdategoof.groups()
yadd = int(year[:2]) * 100
day, month, year = int(mdategoof.group(1)), int(mdategoof.group(2)), int(mdategoof.group(4)) + yadd
- #assert False, tripdate
+ else:
+ assert False, tripdate
return datetime.date(year, month, day)
# 2007, 2008, 2006