From e2c8ac721e28bbb6a2bffec82995fe01a26af1c4 Mon Sep 17 00:00:00 2001 From: Dennis Siemensma Date: Thu, 19 Oct 2023 21:40:00 +0200 Subject: [PATCH] Black reformat --- dsmr_stats/services.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dsmr_stats/services.py b/dsmr_stats/services.py index 9e6ad5d57..95af4e6b9 100644 --- a/dsmr_stats/services.py +++ b/dsmr_stats/services.py @@ -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"), )