about summary refs log tree commit diff
path: root/src/seed.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/seed.go')
-rw-r--r--src/seed.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/seed.go b/src/seed.go
index 8256929..fde4265 100644
--- a/src/seed.go
+++ b/src/seed.go
@@ -52,6 +52,8 @@ func readSeedFile(path string) ([]Challenge) {
 				Name: name,
 				Description: desc,
 				Flag: flag,
+				FoundFlag: false,
+				FlagTries: 0,
 				Container: cont,
 				Category: category,
 			})
@@ -81,6 +83,8 @@ func generateJSONFromChallenges() (string, error) {
 		strippedChallenges = append(strippedChallenges, stripChallenge(challenge))
 	}
 
-	marshalled, marshalError := json.Marshal(strippedChallenges)
+	marshalled, marshalError := json.Marshal(map[string][]StrippedChallenge{
+		"challenges": strippedChallenges,
+	})
 	return string(marshalled), marshalError
 }