Fix testdata

This commit is contained in:
Andrea Fazzi 2020-01-10 14:31:55 +01:00
parent 359cca07ed
commit be38ba9f57
3 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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

1 Firstname Lastname FiscalCode Password CategotyID CategoryID SchoolID ContestIDs
2 Barbabas Ludy BARLUDE2E e2EwvTtTw3o 1 1 1
3 Vasilis Clelle VASCLE52J 52J0T4O 2 2 2
4 Edie Dawdry EDIDAWHTB htb49Tf 1 3 1

View file

@ -15,9 +15,9 @@
<h2 class="karmen-relation-header">Informazioni generali</h2>
<dl class="row">
<dt class="col-sm-3">Username</dt>
<dd class="col-sm-9"><code>{{.Data.User.Username}}</code></dd>
<dd class="col-sm-9"><span class="text-monospace">{{.Data.User.Username}}</span></dd>
<dt class="col-sm-3">Password</dt>
<dd class="col-sm-9"><code>{{.Data.User.Password}}</code></dd>
<dd class="col-sm-9"><span class="text-monospace">{{.Data.User.Password}}</span></dd>
<dt class="col-sm-3">Categoria</dt>
<dd class="col-sm-9">{{.Data.Category}}</dd>