From 3ba1dd380e49cf8eb5217f97ce6d7db7d96e3788 Mon Sep 17 00:00:00 2001 From: dos <dos@dosowisko.net> Date: Fri, 20 Oct 2023 00:15:14 +0000 Subject: [PATCH] server_apps: Add new categories ("Media" and "Games") See https://git.flow3r.garden/flow3r/flow3r-firmware/-/merge_requests/543 --- server_apps.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server_apps.go b/server_apps.go index 65ba7ce..7f374c9 100644 --- a/server_apps.go +++ b/server_apps.go @@ -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") -- GitLab