diff --git a/membershipworks/tasks/scrape.py b/membershipworks/tasks/scrape.py index f08505f..1d196a3 100644 --- a/membershipworks/tasks/scrape.py +++ b/membershipworks/tasks/scrape.py @@ -178,3 +178,6 @@ def scrape_events(): event_ext.details = membershipworks.get_event_by_eid(event.eid) event_ext.registrations = membershipworks.get_event_registrations(event.eid) event_ext.save() + + # delete all events that did not occur in the event list + EventExt.objects.exclude(pk__in=events).delete()