Skip to content
Snippets Groups Projects
Commit a979248b authored by Jonathan Weth's avatar Jonathan Weth :keyboard: Committed by root
Browse files

Merge pull request #289 from Katharineum/feature/skip-parallel-courses-#285

Feature/skip parallel courses #285
parents 726d9346 8b58ebe2
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -317,7 +317,10 @@ def get_header_information(subs, date, events=[]):
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).exclude(
Q(flags__contains="N") | Q(flags__contains="b") | Q(flags__contains="F")).order_by("classids", "lesson")),
Q(flags__contains="N") |
Q(flags__contains="b") |
Q(flags__contains="F") |
Q(flags__exact="g")).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