e-data 1.2.12__tar.gz → 1.2.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {e-data-1.2.12/e_data.egg-info → e-data-1.2.13}/PKG-INFO +1 -1
- {e-data-1.2.12 → e-data-1.2.13/e_data.egg-info}/PKG-INFO +1 -1
- {e-data-1.2.12 → e-data-1.2.13}/edata/helpers.py +5 -3
- {e-data-1.2.12 → e-data-1.2.13}/setup.py +1 -1
- {e-data-1.2.12 → e-data-1.2.13}/LICENSE +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/MANIFEST.in +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/README.md +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/e_data.egg-info/SOURCES.txt +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/e_data.egg-info/dependency_links.txt +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/e_data.egg-info/requires.txt +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/e_data.egg-info/top_level.txt +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/__init__.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/connectors/__init__.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/connectors/datadis.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/connectors/redata.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/const.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/definitions.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/processors/__init__.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/processors/base.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/processors/billing.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/processors/consumption.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/processors/maximeter.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/processors/utils.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/edata/storage.py +0 -0
- {e-data-1.2.12 → e-data-1.2.13}/setup.cfg +0 -0
|
@@ -113,7 +113,6 @@ class EdataHelper:
|
|
|
113
113
|
"""Synchronous update."""
|
|
114
114
|
self._date_from = date_from
|
|
115
115
|
self._date_to = date_to
|
|
116
|
-
self._incremental_update = incremental_update
|
|
117
116
|
|
|
118
117
|
# update datadis resources
|
|
119
118
|
self.update_datadis(self._cups, date_from, date_to)
|
|
@@ -125,7 +124,7 @@ class EdataHelper:
|
|
|
125
124
|
except requests.exceptions.Timeout:
|
|
126
125
|
_LOGGER.error("Timeout exception while updating from REData")
|
|
127
126
|
|
|
128
|
-
self.process_data()
|
|
127
|
+
self.process_data(incremental_update=incremental_update)
|
|
129
128
|
|
|
130
129
|
if self._must_dump:
|
|
131
130
|
dump_storage(self._cups, self.data, self._storage_dir)
|
|
@@ -383,8 +382,11 @@ class EdataHelper:
|
|
|
383
382
|
|
|
384
383
|
return True
|
|
385
384
|
|
|
386
|
-
def process_data(self):
|
|
385
|
+
def process_data(self, incremental_update: bool = True):
|
|
387
386
|
"""Process all raw data."""
|
|
387
|
+
|
|
388
|
+
self._incremental_update = incremental_update
|
|
389
|
+
|
|
388
390
|
for process_method in [
|
|
389
391
|
self.process_supplies,
|
|
390
392
|
self.process_contracts,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|