From 6e9fec242ad787fd300839fefd9b7e7369fc3e4b Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Mon, 6 May 2024 10:56:15 +0200 Subject: [PATCH] no external exams ATM --- plexams/generatedExams.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plexams/generatedExams.go b/plexams/generatedExams.go index 6f26d71..58798d1 100644 --- a/plexams/generatedExams.go +++ b/plexams/generatedExams.go @@ -40,13 +40,14 @@ func (p *Plexams) PrepareGeneratedExams() error { ntaMap[nta.Mtknr] = nta } - externalExams, err := p.ExternalExams(ctx) - if err != nil { - log.Error().Err(err).Msg("cannot get external exams") - return err - } + // externalExams, err := p.ExternalExams(ctx) + // if err != nil { + // log.Error().Err(err).Msg("cannot get external exams") + // return err + // } - ancodesMap := primussAncodesToZpaAncodes(connectedExams, externalExams) + // ancodesMap := primussAncodesToZpaAncodes(connectedExams, externalExams) + ancodesMap := primussAncodesToZpaAncodes(connectedExams) exams := make([]*model.GeneratedExam, 0, len(connectedExams)) @@ -313,7 +314,8 @@ type PrimussAncode struct { Ancode int } -func primussAncodesToZpaAncodes(exams []*model.ConnectedExam, externalExams []*model.ExternalExam) map[PrimussAncode]int { +// func primussAncodesToZpaAncodes(exams []*model.ConnectedExam, externalExams []*model.ExternalExam) map[PrimussAncode]int { +func primussAncodesToZpaAncodes(exams []*model.ConnectedExam) map[PrimussAncode]int { ancodesMap := make(map[PrimussAncode]int) for _, exam := range exams { zpaAncode := exam.ZpaExam.AnCode