From 5a1c686097eea633cc705b7823890c2df446ed1a Mon Sep 17 00:00:00 2001 From: "Grail Finder (aider)" Date: Sat, 5 Apr 2025 13:39:11 +0300 Subject: refactor: update test question to use individual option fields --- internal/handlers/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/handlers/main.go') diff --git a/internal/handlers/main.go b/internal/handlers/main.go index c167cae..c4222f4 100644 --- a/internal/handlers/main.go +++ b/internal/handlers/main.go @@ -69,7 +69,10 @@ func (h *Handlers) MainPage(w http.ResponseWriter, r *http.Request) { testQuestion := &models.Question{ ID: 1, Text: "___ du keine Zweifel daran?", - Options: []string{"Haben", "Hast", "Hat", "Habt"}, + Option1: "Haben", + Option2: "Hast", + Option3: "Hat", + Option4: "Habt", CorrectIndex: 1, } tmpl.ExecuteTemplate(w, "main", testQuestion) -- cgit v1.2.3