squash! WIP: apply a coeff on given points
This commit is contained in:
parent
da29071ad1
commit
1c879fe50e
5 changed files with 28 additions and 24 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
Reference in a new issue