summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2024-10-12 00:26:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2024-10-12 00:26:17 +0200
commit5fe93e048c3f529c80d2d1adb1e49eafebc1af3c (patch)
tree6cfaa78bc78403d1f913d342cc4625290ae9be3f /main.go
parentb46012f212a4302b4d1325d8fdf9634e7083e76a (diff)
downloadgosten-5fe93e048c3f529c80d2d1adb1e49eafebc1af3c.tar.gz
gosten-5fe93e048c3f529c80d2d1adb1e49eafebc1af3c.tar.bz2
gosten-5fe93e048c3f529c80d2d1adb1e49eafebc1af3c.zip
Sort categories on loading
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 29c85da..05ee948 100644
--- a/main.go
+++ b/main.go
@@ -96,7 +96,7 @@ func recurPage() http.HandlerFunc {
func categoriesPage() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
uid := userId(r)
- cats, _ := Q.GetCategories(r.Context(), uid)
+ cats, _ := Q.GetCategoriesOrdered(r.Context(), uid)
showTemplate(w, "categories", cats)
}
}