From c873f15a1e68c74bf5a4e04d365a176267e170a1 Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Thu, 26 Jun 2025 10:53:50 +0200 Subject: [PATCH] fix: workarround, do not check lastSemester for invigilators --- db/zpa.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/zpa.go b/db/zpa.go index 5d6db9a..c750eed 100644 --- a/db/zpa.go +++ b/db/zpa.go @@ -2,7 +2,6 @@ package db import ( "context" - "strings" "time" "github.com/obcode/plexams.go/graph/model" @@ -55,8 +54,8 @@ func isInvigilator(teacher model.Teacher, semester string) bool { return teacher.IsProf && !teacher.IsProfHC && !teacher.IsLBA && - teacher.FK == "FK07" && - strings.Compare(semester, teacher.LastSemester) <= 0 + teacher.FK == "FK07" // && + // strings.Compare(semester, teacher.LastSemester) <= 0 } func (db *DB) getTeachers(ctx context.Context, predicate func(model.Teacher) bool) ([]*model.Teacher, error) {