+++ /dev/null
-from csv import DictReader
-from datetime import datetime
-
-class ToArea:
-
- def __init__(self, area = None, stream_file = None):
-
- self._area = area
- self._stream_file = stream_file
- self._get_located_interventions()
-
-
- def _get_located_interventions(self):
- with open(self._stream_file) as f:
- reader = DictReader(f, delimiter=',')
- for row in reader:
- start = datetime.strptime(row['start'], '%d/%m/%Y %H:%M:%S')
- start.minute = 0
- end = datetime.strptime(row['end'], '%d/%m/%Y %H:%M:%S')
- end.minute = 0
-
-
-
-
-
-