makeHTMLQuestions zu makeResultQuestions umbenannt
This commit is contained in:
parent
404e079343
commit
0041276fb4
@ -204,7 +204,7 @@ func (s *Session) HandleAnswer(db *data.DB, p *BriefingParticipant, i int64) htt
|
||||
SessionID: s.ID,
|
||||
BriefingParticipant: *p,
|
||||
},
|
||||
Questions: makeHTMLQuestions(s.Questions, p.GivenAnswers),
|
||||
Questions: makeResultQuestions(s.Questions, p.GivenAnswers),
|
||||
}
|
||||
|
||||
if data.NoIncorrect == 0 {
|
||||
@ -248,7 +248,7 @@ func (s *Session) HandleRetry(p *BriefingParticipant, i *int) http.HandlerFunc {
|
||||
SessionID: s.ID,
|
||||
BriefingParticipant: *p,
|
||||
},
|
||||
Questions: makeHTMLQuestions(s.Questions, p.GivenAnswers),
|
||||
Questions: makeResultQuestions(s.Questions, p.GivenAnswers),
|
||||
}
|
||||
|
||||
template.Must(template.ParseFiles("templates/result.html")).ExecuteTemplate(w, "content", data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user