Skip to content

Commit

Permalink
Black fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Oct 19, 2023
1 parent 667ac2e commit 9ab6940
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dsmr_stats/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ def clear_statistics() -> None:

def electricity_tariff_percentage(start: date, end: date) -> Optional[Dict]:
"""Returns the total electricity consumption percentage by tariff (high/low tariff)."""
totals = DayStatistics.objects.filter(day__gte=start, day__lte=end,).aggregate(
totals = DayStatistics.objects.filter(
day__gte=start,
day__lte=end,
).aggregate(
electricity1=Sum("electricity1"),
electricity2=Sum("electricity2"),
)
Expand Down

0 comments on commit 9ab6940

Please sign in to comment.