makeHTMLQuestions zu makeResultQuestions umbenannt

This commit is contained in:
Jason Streifling 2023-11-02 17:53:35 +01:00
parent 404e079343
commit 0041276fb4

View File

@ -204,7 +204,7 @@ func (s *Session) HandleAnswer(db *data.DB, p *BriefingParticipant, i int64) htt
SessionID: s.ID, SessionID: s.ID,
BriefingParticipant: *p, BriefingParticipant: *p,
}, },
Questions: makeHTMLQuestions(s.Questions, p.GivenAnswers), Questions: makeResultQuestions(s.Questions, p.GivenAnswers),
} }
if data.NoIncorrect == 0 { if data.NoIncorrect == 0 {
@ -248,7 +248,7 @@ func (s *Session) HandleRetry(p *BriefingParticipant, i *int) http.HandlerFunc {
SessionID: s.ID, SessionID: s.ID,
BriefingParticipant: *p, 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) template.Must(template.ParseFiles("templates/result.html")).ExecuteTemplate(w, "content", data)