From bbdb2f7864b9c218e9cdfca62435a32b0a482b9f Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 6 Apr 2025 09:52:54 +0300 Subject: refactor: rename DBGetFirst10MixedUbungs to DBListMixed --- internal/handlers/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3