mirror of
https://github.com/mlesniew/elicznik.git
synced 2026-01-04 12:05:09 +01:00
Fix handling of null values in responses
This commit is contained in:
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
|
||||
|
||||
setup(
|
||||
name='elicznik',
|
||||
version='1.4.0',
|
||||
version='1.4.1',
|
||||
description='Tauron eLicznik scrapper',
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
|
||||
@@ -61,6 +61,6 @@ class ELicznik:
|
||||
consumed = self.get_readings_consumption(start_date, end_date)
|
||||
produced = self.get_readings_production(start_date, end_date)
|
||||
return sorted(
|
||||
(timestamp, float(consumed.get(timestamp)), float(produced.get(timestamp)))
|
||||
(timestamp, consumed.get(timestamp), produced.get(timestamp))
|
||||
for timestamp in set(consumed) | set(produced)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user