makeHTMLQuestions zu makeResultQuestions umbenannt
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user