diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-12 00:26:17 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-12 00:26:17 +0200 |
commit | 5fe93e048c3f529c80d2d1adb1e49eafebc1af3c (patch) | |
tree | 6cfaa78bc78403d1f913d342cc4625290ae9be3f /main.go | |
parent | b46012f212a4302b4d1325d8fdf9634e7083e76a (diff) | |
download | gosten-5fe93e048c3f529c80d2d1adb1e49eafebc1af3c.tar.gz gosten-5fe93e048c3f529c80d2d1adb1e49eafebc1af3c.tar.bz2 gosten-5fe93e048c3f529c80d2d1adb1e49eafebc1af3c.zip |
Sort categories on loading
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } } |