Change check on correct answer

This commit is contained in:
andrea 2023-07-12 10:53:53 +02:00
parent a5acdce647
commit 7f4849c575

View file

@ -167,7 +167,7 @@ func MarkdownFromQuiz(quiz *models.Quiz) (string, error) {
var otherAnswers string var otherAnswers string
for _, answer := range quiz.Answers { for _, answer := range quiz.Answers {
if quiz.Correct != answer { if quiz.Correct.ID != answer.ID {
otherAnswers += "* " + answer.Text + "\n" otherAnswers += "* " + answer.Text + "\n"
} }
} }