summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-04-06 09:52:54 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-04-06 09:52:54 +0300
commitbbdb2f7864b9c218e9cdfca62435a32b0a482b9f (patch)
treef6fc934d380e8907bbd4ecc7b1f8722fc7c18126 /internal/handlers
parent81cdcd5bc743b79dbea3cdbfe781d6dd823ded71 (diff)
refactor: rename DBGetFirst10MixedUbungs to DBListMixed
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/main.go b/internal/handlers/main.go
index 4aa8eca..c04fd4e 100644
--- a/internal/handlers/main.go
+++ b/internal/handlers/main.go
@@ -154,7 +154,7 @@ func (h *Handlers) renderQuestion(w http.ResponseWriter, question *models.Questi
}
func (h *Handlers) MainPage(w http.ResponseWriter, r *http.Request) {
- ubungs, err := h.repo.DBGetFirst10MixedUbungs()
+ ubungs, err := h.repo.DBListMixed(10)
if err != nil {
h.log.Error("failed to get mixed ubungs", "error", err)
abortWithError(w, "Failed to load exercises")