Skip to content
Snippets Groups Projects
Commit d1a732a2 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch...

Merge branch '232-full-register-printout-events-are-also-shown-for-days-which-are-not-in-the-timetable-schema' into 'master'

Resolve "[Full register printout] Events are also shown for days which are not in the timetable schema"

Closes #232

See merge request !313
parents 87c7f5e1 4ae705e6
No related branches found
No related tags found
1 merge request!313Resolve "[Full register printout] Events are also shown for days which are not in the timetable schema"
Pipeline #102719 passed with warnings
......@@ -21,6 +21,7 @@ Fixed
* Extra marks and excused absences were counted multiple times in some class register views.
* Substitution teachers couldn't see any persons in the person list of a substituted lesson.
* Events were shown for days not being inside the timetable schema in full register printout.
`2.1.1`_ - 2022-09-01
---------------------
......
......@@ -87,6 +87,11 @@ def generate_full_register_printout(group: int, file_object: int, recorder: Prog
day = event.date_start + timedelta(days=i)
event_copy = deepcopy(event)
event_copy.annotate_day(day)
# Skip event days if it isn't inside the timetable schema
if not (event_copy.raw_period_from_on_day and event_copy.raw_period_to_on_day):
continue
register_objects_by_day.setdefault(day, []).append(
(
event_copy,
......
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