diff --git a/biscuit/apps/untis/sub.py b/biscuit/apps/untis/sub.py index f78861805b27739a7f277d794ce81ff2b6a22e5f..fbd2fc0ebf0f015b28a22a5cd6020cf968ffab57 100644 --- a/biscuit/apps/untis/sub.py +++ b/biscuit/apps/untis/sub.py @@ -250,7 +250,8 @@ def generate_sub_table(subs): def get_substitutions_by_date(date): subs_raw = run_default_filter( - run_using(models.Substitution.objects.filter(date=date_to_untis_date(date)).order_by("classids", "lesson")), + run_using(models.Substitution.objects.filter(date=date_to_untis_date(date), deleted=0).order_by("classids", + "lesson")), filter_term=False) # print(subs_raw)