Change check on correct answer
This commit is contained in:
parent
a5acdce647
commit
7f4849c575
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue