Backend: extract file generation and team renaming in dedicated files
This commit is contained in:
parent
aefd078ebf
commit
1c62f61bf0
8 changed files with 261 additions and 140 deletions
|
|
@ -25,9 +25,9 @@ func genStats() (interface{}, error) {
|
|||
if exercices, err := theme.GetExercices(); err != nil {
|
||||
return nil, err
|
||||
} else {
|
||||
exos := map[string]exportedExercice{}
|
||||
exos := map[string]fic.ExportedExercice{}
|
||||
for _, exercice := range exercices {
|
||||
exos[fmt.Sprintf("%d", exercice.Id)] = exportedExercice{
|
||||
exos[fmt.Sprintf("%d", exercice.Id)] = fic.ExportedExercice{
|
||||
exercice.Title,
|
||||
exercice.Gain,
|
||||
exercice.SolvedCount(),
|
||||
|
|
|
|||
Reference in a new issue