Skip to content
Snippets Groups Projects
Commit 9f9d5a47 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Don't show substitutions with "N" (don't print) flag (issue #118)

parent 7e870d37
No related branches found
No related tags found
No related merge requests found
......@@ -318,8 +318,8 @@ def get_header_information(subs, date):
def get_substitutions_by_date(date):
subs_raw = run_default_filter(
run_using(models.Substitution.objects.filter(date=date_to_untis_date(date), deleted=0).order_by("classids",
"lesson")),
run_using(models.Substitution.objects.filter(date=date_to_untis_date(date), deleted=0).exclude(
flags__contains="N").order_by("classids", "lesson")),
filter_term=False)
subs = row_by_row_helper(subs_raw, Substitution)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment