From be38ba9f571205720c286503170cd534784d5ef4 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Fri, 10 Jan 2020 14:31:55 +0100 Subject: [PATCH] Fix testdata --- orm/participant.go | 2 -- scripts/import/testdata/participants.csv | 2 +- templates/participants_show.html.tpl | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/orm/participant.go b/orm/participant.go index 4b2631b6..c59b8d1d 100644 --- a/orm/participant.go +++ b/orm/participant.go @@ -2,7 +2,6 @@ package orm import ( "fmt" - "log" "net/http" "strconv" @@ -59,7 +58,6 @@ func (ids *ContestIDs) UnmarshalCSV(csv string) error { if err != nil { return err } - log.Println(id) *ids = append(*ids, uint(id)) } return nil diff --git a/scripts/import/testdata/participants.csv b/scripts/import/testdata/participants.csv index 81a91bc1..8e732604 100644 --- a/scripts/import/testdata/participants.csv +++ b/scripts/import/testdata/participants.csv @@ -1,4 +1,4 @@ -Firstname,Lastname,FiscalCode,Password,CategotyID,SchoolID,ContestIDs +Firstname,Lastname,FiscalCode,Password,CategoryID,SchoolID,ContestIDs Barbabas,Ludy,BARLUDE2E,e2EwvTtTw3o,1,1,1 Vasilis,Clelle,VASCLE52J,52J0T4O,2,2,2 Edie,Dawdry,EDIDAWHTB,htb49Tf,1,3,1 diff --git a/templates/participants_show.html.tpl b/templates/participants_show.html.tpl index 1a8f6aa5..92dd1b26 100644 --- a/templates/participants_show.html.tpl +++ b/templates/participants_show.html.tpl @@ -15,9 +15,9 @@

Informazioni generali

Username
-
{{.Data.User.Username}}
+
{{.Data.User.Username}}
Password
-
{{.Data.User.Password}}
+
{{.Data.User.Password}}
Categoria
{{.Data.Category}}