Closed RichieB2B closed 1 year ago
When day_statistics(target_date=yesterday) returns an empty queryset, add the values of dsmr_consumption.services.day_consumption(day=yesterday) to the results of period_totals() so they are not missing a full day.
day_statistics(target_date=yesterday)
dsmr_consumption.services.day_consumption(day=yesterday)
period_totals()
Fixes #1811 for electricity stats
Wacht op structureel rework in #1811
When
day_statistics(target_date=yesterday)
returns an empty queryset, add the values ofdsmr_consumption.services.day_consumption(day=yesterday)
to the results ofperiod_totals()
so they are not missing a full day.Fixes #1811 for electricity stats