Skip to content

Commit

Permalink
Black reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Oct 19, 2023
1 parent 88859d8 commit e2c8ac7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dsmr_stats/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,7 @@ 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 e2c8ac7

Please sign in to comment.