Backend: extract file generation and team renaming in dedicated files

This commit is contained in:
nemunaire 2016-03-06 18:57:08 +01:00 committed by Pierre-Olivier Mercier
commit 1c62f61bf0
8 changed files with 261 additions and 140 deletions

View file

@ -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(),