Skip to content
Snippets Groups Projects
Unverified Commit 8a205636 authored by Andreas Hubel's avatar Andreas Hubel
Browse files

feat(schedule-import): define depublishing as default case

parent 3b038f69
Branches
Tags v3.0.0
No related merge requests found
......@@ -439,11 +439,12 @@ class ScheduleSource(models.Model):
}
# check if we should do something about the missing event
if missing_events == 'depublish':
Event.objects.filter(pk=event_id).update(is_public=False, room=None)
elif missing_events == 'delete':
match missing_events:
case 'delete':
Event.objects.filter(pk=event_id).delete()
act['action'] = 'deleted'
case ['depublish', _]:
Event.objects.filter(pk=event_id).update(is_public=False, room=None)
activity.append(act)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment