diff options
| author | Grail Finder <wohilas@gmail.com> | 2025-04-06 09:52:54 +0300 | 
|---|---|---|
| committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-06 09:52:54 +0300 | 
| commit | bbdb2f7864b9c218e9cdfca62435a32b0a482b9f (patch) | |
| tree | f6fc934d380e8907bbd4ecc7b1f8722fc7c18126 /internal/handlers | |
| parent | 81cdcd5bc743b79dbea3cdbfe781d6dd823ded71 (diff) | |
refactor: rename DBGetFirst10MixedUbungs to DBListMixed
Diffstat (limited to 'internal/handlers')
| -rw-r--r-- | internal/handlers/main.go | 2 | 
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")  | 
