membershipworks: Skip canceled events in wordpress post generator
This commit is contained in:
parent
adc882444c
commit
33559463fb
@ -107,6 +107,9 @@ def upcoming_events_wordpress(request):
|
|||||||
and datetime.fromtimestamp(event_details["erd"]) < now
|
and datetime.fromtimestamp(event_details["erd"]) < now
|
||||||
):
|
):
|
||||||
ongoing_events.append(event_details)
|
ongoing_events.append(event_details)
|
||||||
|
# canceled events
|
||||||
|
elif event_details["cap"] == 0:
|
||||||
|
continue
|
||||||
# class is full
|
# class is full
|
||||||
elif event_details["cnt"] >= event_details["cap"]:
|
elif event_details["cnt"] >= event_details["cap"]:
|
||||||
full_events.append(event_details)
|
full_events.append(event_details)
|
||||||
|
Loading…
Reference in New Issue
Block a user