Skip to content

Commit

Permalink
Black reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jun 10, 2024
1 parent 84aac6b commit fe79886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dsmr_plugins/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
from django.utils.version import get_version


VERSION = (1, 19, 0, 'beta', 0)
VERSION = (1, 19, 0, "beta", 0)

__version__ = get_version(VERSION)
5 changes: 1 addition & 4 deletions src/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 fe79886

Please sign in to comment.