diff options
Diffstat (limited to '')
-rw-r--r-- | http_handle_index.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_index.go b/http_handle_index.go index f710315..4632526 100644 --- a/http_handle_index.go +++ b/http_handle_index.go @@ -11,7 +11,7 @@ func handle_index(w http.ResponseWriter, r *http.Request, params map[string]any) var err error var groups []name_desc_t - groups, err = query_name_desc_list(r.Context(), "SELECT name, COALESCE(description, '') FROM groups") + groups, err = query_name_desc_list(r.Context(), "SELECT name, COALESCE(description, '') FROM groups WHERE parent_group IS NULL") if err != nil { http.Error(w, "Error querying groups: "+err.Error(), http.StatusInternalServerError) return |