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