diff options
author | Sam Wenham <sam@wenhams.co.uk> | 2015-01-26 21:53:32 +0000 |
---|---|---|
committer | Sam Wenham <sam@wenhams.co.uk> | 2015-01-26 21:53:32 +0000 |
commit | 244a6177cf88b8a88a35cd3b6b90da742dc3e4c0 (patch) | |
tree | 0e7e6370de6bf2d77eb5572009a2ed81eeb652cd | |
parent | 086bfe61a1d13e5499d7c73908ce6a869d667f3a (diff) | |
download | troggle-244a6177cf88b8a88a35cd3b6b90da742dc3e4c0.tar.gz troggle-244a6177cf88b8a88a35cd3b6b90da742dc3e4c0.tar.bz2 troggle-244a6177cf88b8a88a35cd3b6b90da742dc3e4c0.zip |
Revert all of this the date is needed and is a not null in the db
-rw-r--r-- | parsers/logbooks.py | 3 |
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 |