e-data 1.2.8__tar.gz → 1.2.9__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.
Files changed (25) hide show
  1. {e-data-1.2.8/e_data.egg-info → e-data-1.2.9}/PKG-INFO +1 -1
  2. {e-data-1.2.8 → e-data-1.2.9/e_data.egg-info}/PKG-INFO +1 -1
  3. {e-data-1.2.8 → e-data-1.2.9}/edata/connectors/datadis.py +4 -1
  4. {e-data-1.2.8 → e-data-1.2.9}/setup.py +1 -1
  5. {e-data-1.2.8 → e-data-1.2.9}/LICENSE +0 -0
  6. {e-data-1.2.8 → e-data-1.2.9}/MANIFEST.in +0 -0
  7. {e-data-1.2.8 → e-data-1.2.9}/README.md +0 -0
  8. {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/SOURCES.txt +0 -0
  9. {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/dependency_links.txt +0 -0
  10. {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/requires.txt +0 -0
  11. {e-data-1.2.8 → e-data-1.2.9}/e_data.egg-info/top_level.txt +0 -0
  12. {e-data-1.2.8 → e-data-1.2.9}/edata/__init__.py +0 -0
  13. {e-data-1.2.8 → e-data-1.2.9}/edata/connectors/__init__.py +0 -0
  14. {e-data-1.2.8 → e-data-1.2.9}/edata/connectors/redata.py +0 -0
  15. {e-data-1.2.8 → e-data-1.2.9}/edata/const.py +0 -0
  16. {e-data-1.2.8 → e-data-1.2.9}/edata/definitions.py +0 -0
  17. {e-data-1.2.8 → e-data-1.2.9}/edata/helpers.py +0 -0
  18. {e-data-1.2.8 → e-data-1.2.9}/edata/processors/__init__.py +0 -0
  19. {e-data-1.2.8 → e-data-1.2.9}/edata/processors/base.py +0 -0
  20. {e-data-1.2.8 → e-data-1.2.9}/edata/processors/billing.py +0 -0
  21. {e-data-1.2.8 → e-data-1.2.9}/edata/processors/consumption.py +0 -0
  22. {e-data-1.2.8 → e-data-1.2.9}/edata/processors/maximeter.py +0 -0
  23. {e-data-1.2.8 → e-data-1.2.9}/edata/processors/utils.py +0 -0
  24. {e-data-1.2.8 → e-data-1.2.9}/edata/storage.py +0 -0
  25. {e-data-1.2.8 → e-data-1.2.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: e-data
3
- Version: 1.2.8
3
+ Version: 1.2.9
4
4
  Summary: Python library for managing spanish energy data from various web providers
5
5
  Home-page: https://github.com/uvejota/python-edata
6
6
  Author: VMG
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: e-data
3
- Version: 1.2.8
3
+ Version: 1.2.9
4
4
  Summary: Python library for managing spanish energy data from various web providers
5
5
  Home-page: https://github.com/uvejota/python-edata
6
6
  Author: VMG
@@ -448,12 +448,15 @@ class DatadisConnector:
448
448
  )
449
449
  if not (start_date <= date_as_dt <= end_date):
450
450
  continue # skip element if dt is out of range
451
+ _surplus = i.get("surplusEnergyKWh", 0)
452
+ if _surplus is None:
453
+ _surplus = 0
451
454
  consumptions.append(
452
455
  ConsumptionData(
453
456
  datetime=date_as_dt,
454
457
  delta_h=1,
455
458
  value_kWh=i["consumptionKWh"],
456
- surplus_kWh=i.get("surplusEnergyKWh", 0),
459
+ surplus_kWh=_surplus,
457
460
  real=i["obtainMethod"] == "Real",
458
461
  )
459
462
  )
@@ -20,7 +20,7 @@ URL = "https://github.com/uvejota/python-edata"
20
20
  EMAIL = "vmayorg@outlook.es"
21
21
  AUTHOR = "VMG"
22
22
  REQUIRES_PYTHON = ">=3.6.0"
23
- VERSION = "1.2.8"
23
+ VERSION = "1.2.9"
24
24
 
25
25
  # What packages are required for this module to be executed?
26
26
  REQUIRED = [
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