Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add yesterday stats when day totals are not yet available #1814

Closed
wants to merge 2 commits into from

Conversation

RichieB2B
Copy link
Contributor

@RichieB2B RichieB2B commented Feb 24, 2023

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.

Fixes #1811 for electricity stats

@dennissiemensma
Copy link
Member

Wacht op structureel rework in #1811

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants