Skip to content

Commit

Permalink
no external exams ATM
Browse files Browse the repository at this point in the history
  • Loading branch information
obcode committed May 6, 2024
1 parent 42e066a commit 6e9fec2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions plexams/generatedExams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e9fec2

Please sign in to comment.