forked from expo/troggle
Revert all of this the date is needed and is a not null in the db
This commit is contained in:
parent
086bfe61a1
commit
244a6177cf
@ -111,7 +111,8 @@ def ParseDate(tripdate, year):
|
|||||||
assert not mdategoof.group(3) or mdategoof.group(3) == year[:2], mdategoof.groups()
|
assert not mdategoof.group(3) or mdategoof.group(3) == year[:2], mdategoof.groups()
|
||||||
yadd = int(year[:2]) * 100
|
yadd = int(year[:2]) * 100
|
||||||
day, month, year = int(mdategoof.group(1)), int(mdategoof.group(2)), int(mdategoof.group(4)) + yadd
|
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)
|
return datetime.date(year, month, day)
|
||||||
|
|
||||||
# 2007, 2008, 2006
|
# 2007, 2008, 2006
|
||||||
|
Loading…
Reference in New Issue
Block a user