Skip to content

Commit abda64f

Browse files
All time highs empty #535
1 parent 96633c3 commit abda64f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dsmr_stats/services.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ def update_electricity_statistics(reading):
292292
print('update_electricity_statistics() - Current check:', reading_field, '/', stat_field)
293293
reading_value = getattr(reading, reading_field) or 0
294294
highest_value = getattr(stats, '{}_value'.format(stat_field)) or 0
295-
print('update_electricity_statistics() - reading_value / highest_value: ', reading_value, '/', highest_value)
295+
print(
296+
'update_electricity_statistics() - reading_value / highest_value: ', reading_value, '/', highest_value
297+
)
296298

297299
if reading_value and Decimal(reading_value) > Decimal(highest_value):
298300
print('update_electricity_statistics() - New high for', stat_field)

0 commit comments

Comments
 (0)