daca2-report: handle \r also
This commit is contained in:
parent
785df82513
commit
54ecf8af82
|
@ -23,7 +23,7 @@ def readdate(data):
|
||||||
d = data[datepos]
|
d = data[datepos]
|
||||||
if d >= '0' and d <= '9':
|
if d >= '0' and d <= '9':
|
||||||
datestr = datestr + d
|
datestr = datestr + d
|
||||||
elif d == '\n':
|
elif d == '\n' or d == '\r':
|
||||||
if len(datestr) == 8:
|
if len(datestr) == 8:
|
||||||
return datestr[:4] + '-' + datestr[4:6] + '-' + datestr[6:]
|
return datestr[:4] + '-' + datestr[4:6] + '-' + datestr[6:]
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue