feat: derive event lifecycle status from dates and flags
Replace persisted event statuses with publication and cancellation flags, and compute public lifecycle labels from event timing and registration capacity. Keep filters, registration checks, and profile responses aligned with the derived status.
This commit is contained in:
@@ -18,7 +18,8 @@ def send_event_reminders():
|
||||
window = timedelta(minutes=30)
|
||||
events = Event.objects.filter(
|
||||
start_time__range=(reminder_target - window, reminder_target + window),
|
||||
status=Event.StatusChoices.PUBLISHED,
|
||||
is_published=True,
|
||||
is_cancelled=False,
|
||||
is_deleted=False,
|
||||
)
|
||||
total_sent = 0
|
||||
|
||||
Reference in New Issue
Block a user