squash! WIP: apply a coeff on given points

This commit is contained in:
nemunaire 2017-01-15 23:40:58 +01:00
parent da29071ad1
commit 1c879fe50e
5 changed files with 28 additions and 24 deletions

View file

@ -72,10 +72,11 @@ func (t Theme) Delete() (int64, error) {
}
type ExportedExercice struct {
Title string `json:"title"`
Gain int64 `json:"gain"`
Solved int64 `json:"solved"`
Tried int64 `json:"tried"`
Title string `json:"title"`
Gain int64 `json:"gain"`
Coeff float64 `json:"curcoeff"`
Solved int64 `json:"solved"`
Tried int64 `json:"tried"`
}
type exportedTheme struct {
@ -98,6 +99,7 @@ func ExportThemes() (interface{}, error) {
exos[fmt.Sprintf("%d", exercice.Id)] = ExportedExercice{
exercice.Title,
exercice.Gain,
exercice.Coefficient,
exercice.SolvedCount(),
exercice.TriedTeamCount(),
}