correctly update lectures in full file on creation of new lecture

This commit is contained in:
Maximilian Keßler 2021-10-27 19:36:40 +02:00
parent 8cf70e724d
commit e575d61c2b

View file

@ -48,6 +48,7 @@ class Notes:
self.update_lectures_in_master([1]) self.update_lectures_in_master([1])
else: else:
self.update_lectures_in_master([lec.number - 1, lec.number]) self.update_lectures_in_master([lec.number - 1, lec.number])
self._lectures = None # This causes the lectures to be re-computed
self.update_lectures_in_full(self.lectures.parse_range_string('all')) self.update_lectures_in_full(self.lectures.parse_range_string('all'))
return lec return lec