Skip to content

Commit

Permalink
add field for additional data
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Nov 20, 2024
1 parent 82085e0 commit b65714d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions v3/services/scoresvc/internal/scoreservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ type Cooldown struct {
}

type Score struct {
Name string `json:"name"`
Score int `json:"score"`
Code string `json:"code"`
Name string `json:"name"`
Score int `json:"score"`
Code string `json:"code"`
X map[string]interface{} `json:"x,omitempty"` // This holds all other datapoints to store like average command size which can be added withouth chaning the backend
}

type LanguageLeaderboard struct {
Expand Down

0 comments on commit b65714d

Please sign in to comment.