Update delivery import
This commit is contained in:
@ -45,9 +45,9 @@ def parse(filename: str) -> Iterator[Dict[str, Any]]:
|
||||
part = True
|
||||
elif part == 'F':
|
||||
part = False
|
||||
elif part.isdigit():
|
||||
elif re.fullmatch(r'-?[0-9]+', part):
|
||||
part = int(part)
|
||||
elif re.match(r'-?[0-9]+\.[0-9]+', part):
|
||||
elif re.fullmatch(r'-?[0-9]+\.[0-9]+', part):
|
||||
part = float(part)
|
||||
elif len(part) == 10 and part[4] == '-' and part[7] == '-':
|
||||
part = datetime.datetime.strptime(part, '%Y-%m-%d').date()
|
||||
|
Reference in New Issue
Block a user