From 24c017992693a7e916864686af67b090830178ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Dobrovoljc?= Date: Wed, 14 Aug 2024 16:13:33 +0200 Subject: [PATCH] Join participation fields into one field when pushing to google sheets --- internal/service/game.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/service/game.go b/internal/service/game.go index 654f687..a6c88f8 100644 --- a/internal/service/game.go +++ b/internal/service/game.go @@ -485,9 +485,11 @@ func (s *GameService) appendRowToGoogleSheets( fields = append(fields, value) } fields = append(fields, participationMethod.Name) + var participationStrings []string for _, value := range participation.Fields { - fields = append(fields, value) + participationStrings = append(participationStrings, fmt.Sprintf("%v", value)) } + fields = append(fields, strings.Join(participationStrings, ", ")) if prize != nil { fields = append(fields, prize.Name) } else {