From 42018ec3137dd2af5c84567e7b603f0eaf055048 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 6 Apr 2025 09:27:33 +0300 Subject: refactor: update SQL query and remove question template --- components/index.html | 71 ------------------------------------ internal/database/repos/questions.go | 2 +- 2 files changed, 1 insertion(+), 72 deletions(-) diff --git a/components/index.html b/components/index.html index 7d4552f..00df90f 100644 --- a/components/index.html +++ b/components/index.html @@ -10,77 +10,6 @@
- {{if .Requirement}} -

{{.Requirement}}

- {{end}} -
- {{.Text}} -
-
- {{if eq .Status 1}} - Correct! - {{end}} - {{if eq .Status 2}} - Wrong. - {{end}} -
-
- {{if ne .Status 0}} -
- {{.Explanation}} -
- - {{end}} -
-
- - - - -
diff --git a/internal/database/repos/questions.go b/internal/database/repos/questions.go index f444b05..ab5e093 100644 --- a/internal/database/repos/questions.go +++ b/internal/database/repos/questions.go @@ -9,7 +9,7 @@ type QuestionsRepo interface { func (p *Provider) DBGetMixedUbung(id uint32) (*models.MixedUbung, error) { var ubung models.MixedUbung - err := p.db.Get(&ubung, "SELECT * FROM mixed_ubungs WHERE mixed_id = ?", id) + err := p.db.Get(&ubung, "SELECT * FROM Table_Mixed WHERE mixedid = ?", id) if err != nil { return nil, err } -- cgit v1.2.3