Skip to content
Snippets Groups Projects
Verified Commit 3ba1dd38 authored by dos's avatar dos Committed by dos
Browse files

server_apps: Add new categories ("Media" and "Games")

parent f1395569
No related branches found
No related tags found
1 merge request!6server_apps: Add new sections ("Media" and "Games")
......@@ -284,9 +284,11 @@ func (s *server) parseAppToml(ctx context.Context, pathInRepo string, obj *objec
"Badge": true,
"Apps": true,
"Music": true,
"Media": true,
"Games": true,
}
if !sections[data.App.Category] {
return nil, fmt.Errorf("app category invalid (must be one of 'Badge', 'Apps', 'Music')")
return nil, fmt.Errorf("app category invalid (must be one of 'Badge', 'Apps', 'Music', 'Media', 'Games')")
}
if data.Entry.Class == "" {
return nil, fmt.Errorf("no entry class")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment