From 21807d15304967b509c6290ef99b9e25f34ef6de Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sat, 30 Aug 2025 22:21:08 +0000 Subject: [PATCH] Update web/core/models_ann.py --- web/core/models_ann.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/web/core/models_ann.py b/web/core/models_ann.py index 650d433..ad7fd54 100644 --- a/web/core/models_ann.py +++ b/web/core/models_ann.py @@ -20,14 +20,7 @@ class Announcement(models.Model): return self.title or f"Announcement #{self.pk}" def is_current(self): - now = timezone.now() - if not self.is_active: - return False - if self.start_at and now < self.start_at: - return False - if self.end_at and now > self.end_at: - return False - return True + return bool(self.is_active) class AnnouncementDismissal(models.Model):