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

Remove superfluous query from data checks

parent b2f2c7d2
No related branches found
No related tags found
1 merge request!92Resolve "Add task for checking plausibility of data"
...@@ -58,7 +58,6 @@ class NoPersonalNotesInCancelledLessonsDataCheck(DataCheck): ...@@ -58,7 +58,6 @@ class NoPersonalNotesInCancelledLessonsDataCheck(DataCheck):
for note in personal_notes: for note in personal_notes:
logging.info(f"Check personal note {note}") logging.info(f"Check personal note {note}")
sub = note.lesson_period.get_substitution(CalendarWeek(week=note.week, year=note.year))
result = DataCheckResult.objects.get_or_create( result = DataCheckResult.objects.get_or_create(
check=cls.name, content_type=ct, object_id=note.id check=cls.name, content_type=ct, object_id=note.id
) )
......
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