Skip to content

Commit

Permalink
no more gender and fix studentregs
Browse files Browse the repository at this point in the history
  • Loading branch information
obcode committed May 14, 2024
1 parent 9022be7 commit 18e633f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions plexams/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ func (p *Plexams) PrepareStudentRegs() error {

for mtknr, regs := range studentRegsPerStudent {
if len(regs) > 0 {
ancodes := make([]int, 0, len(regs))
ancodeSet := set.NewSet[int]()
for _, reg := range regs {
ancodes = append(ancodes, reg.AnCode)
ancodeSet.Add(reg.AnCode)
}

ancodes := ancodeSet.ToSlice()
sort.Ints(ancodes)

studentRegsSlice = append(studentRegsSlice, &model.Student{
Expand Down
2 changes: 1 addition & 1 deletion tmpl/generatedExamEmail.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sehr geehrte:r {{ .Teacher.Fullname }},
Hallo {{ .Teacher.Fullname }},

{{ if not .HasStudentRegs }}
Für Ihre Prüfung "{{ .Exam.ZpaExam.AnCode }}. {{ .Exam.ZpaExam.Module }}" liegen überhaupt keine Anmeldungen vor, daher werde ich sie nicht
Expand Down
2 changes: 1 addition & 1 deletion tmpl/generatedExamEmailHTML.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Sehr geehrte:r {{ .Teacher.Fullname }},</p>
<p>Hallo {{ .Teacher.Fullname }},</p>

{{ if not .HasStudentRegs }}
<p><b>Für Ihre Prüfung <b>{{ .Exam.ZpaExam.AnCode }}. {{ .Exam.ZpaExam.Module }}</b> liegen überhaupt keine Anmeldungen vor, daher werde ich sie nicht
Expand Down
2 changes: 1 addition & 1 deletion tmpl/handicapEmail.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sehr geehrte:r {{ .MainExamer }},
Hallo {{ .MainExamer }},

für Ihre Prüfungen sind mir folgende Studierende mit Nachteilsausgleich bekannt:

Expand Down
2 changes: 1 addition & 1 deletion tmpl/handicapEmailHTML.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Sehr geehrte:r {{ .MainExamer }},</p>
<p>Hallo {{ .MainExamer }},</p>

<p>für Ihre Prüfungen sind mir folgende Studierende mit Nachteilsausgleich bekannt:</p>

Expand Down
2 changes: 1 addition & 1 deletion tmpl/handicapEmailRoomAlone.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sehr geehrte:r {{ .NTA.Name }},
Hallo {{ .NTA.Name }},

Sie haben gemäß den mir vorliegenden Informationen Anspruch auf einen eigenen Raum
bei Ihren Prüfungen.
Expand Down
2 changes: 1 addition & 1 deletion tmpl/handicapEmailRoomAloneHTML.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Sehr geehrte:r {{ .NTA.Name }},</p>
<p>Hallo {{ .NTA.Name }},</p>

<p>Sie haben gemäß den mir vorliegenden Informationen Anspruch auf einen eigenen Raum
bei Ihren Prüfungen.</p>
Expand Down

0 comments on commit 18e633f

Please sign in to comment.