Commit 689fac9 1 parent 5a60ee7 commit 689fac9 Copy full SHA for 689fac9
File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ const (
84
84
)
85
85
86
86
type Round struct {
87
- Question string `json:"question"`
88
- Answers []string `json:"answers"`
89
- Correct int `json:"correct,omitempty"`
90
- Current int `json:"current_round"`
91
- Max int `json:"max_round"`
92
- Category string `json:"category"`
87
+ Question string `json:"question"`
88
+ Answers []string `json:"answers"`
89
+ Correct int `json:"correct,omitempty"`
90
+ Current int `json:"current_round"`
91
+ Max int `json:"max_round"`
92
+ Category CategoryDefinition `json:"category"`
93
93
}
94
94
95
95
type RoundSummary struct {
@@ -229,7 +229,7 @@ func (c Category) GetRounds(n int) []*Round {
229
229
continue
230
230
}
231
231
round := q .ToRound ()
232
- round .Category = c .ID
232
+ round .Category = c .GetDefinition ()
233
233
rounds = append (rounds , & round )
234
234
}
235
235
return rounds
You can’t perform that action at this time.
0 commit comments