daca2-report: handle \r also

This commit is contained in:
Daniel Marjamäki 2015-04-29 17:23:24 +02:00
parent 785df82513
commit 54ecf8af82
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def readdate(data):
d = data[datepos]
if d >= '0' and d <= '9':
datestr = datestr + d
elif d == '\n':
elif d == '\n' or d == '\r':
if len(datestr) == 8:
return datestr[:4] + '-' + datestr[4:6] + '-' + datestr[6:]
return None