From b3b28861982f952d4f0f6ba33c7a5866541e0087 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sun, 3 May 2020 22:10:15 +0200
Subject: [PATCH] [Reformat] Fix variables

---
 aleksis/apps/chronos/models.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py
index 382a3e34..204e92ff 100644
--- a/aleksis/apps/chronos/models.py
+++ b/aleksis/apps/chronos/models.py
@@ -114,27 +114,27 @@ class TimePeriod(ExtensibleModel):
         return url_prev, url_next
 
     @classproperty
-    def period_min(cls) -> int:
+    def period_min(self, cls) -> int:
         return cls.objects.aggregate(period__min=Coalesce(Min("period"), 1)).get("period__min")
 
     @classproperty
-    def period_max(cls) -> int:
+    def period_max(self, cls) -> int:
         return cls.objects.aggregate(period__max=Coalesce(Max("period"), 7)).get("period__max")
 
     @classproperty
-    def time_min(cls) -> Optional[time]:
+    def time_min(self, cls) -> Optional[time]:
         return cls.objects.aggregate(Min("time_start")).get("time_start__min")
 
     @classproperty
-    def time_max(cls) -> Optional[time]:
+    def time_max(self, cls) -> Optional[time]:
         return cls.objects.aggregate(Max("time_end")).get("time_end__max")
 
     @classproperty
-    def weekday_min(cls) -> int:
+    def weekday_min(self, cls) -> int:
         return cls.objects.aggregate(weekday__min=Coalesce(Min("weekday"), 0)).get("weekday__min")
 
     @classproperty
-    def weekday_max(cls) -> int:
+    def weekday_max(self, cls) -> int:
         return cls.objects.aggregate(weekday__max=Coalesce(Max("weekday"), 6)).get("weekday__max")
 
     class Meta:
-- 
GitLab