Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit a8a3abe

Browse files
committed
empty string as player name nill & datadv trailer
1 parent d69e635 commit a8a3abe

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

models/dataadv.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ type UserData struct {
44
User_id uint32
55
Data_type string
66
Code string
7-
Data data
7+
Data UserDataData
88
}
99

10-
type data struct {
10+
type UserDataData struct {
1111
Plate_override string `json:"plate_override"`
1212
Gaptitudes gaptitudes `json:"gaptitudes"`
1313
Gaptitudes_v gaptitudesv `json:"gaptitudes_v"`
@@ -104,7 +104,7 @@ type customization struct {
104104
}
105105

106106
type vehicle struct {
107-
Has_trailer bool `json:"has_trailer"`
107+
// Has_trailer bool `json:"has_trailer"`
108108
Vehicle_model int32 `json:"vehicle_model"`
109109
Vehicle_label string `json:"vehicle_label"`
110110
Vehicle_type string `json:"vehicle_type"`

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func GetTotalPlayers() ([]models.BaseTotalPlayer, error) {
3030
// log.Printf("%+v\n", player)
3131
if player[0] == nil {
3232
log.Printf("Entry of player had invalid name: %+v\n", player)
33-
continue
33+
player[0] = ""
3434
}
3535
if reflect.TypeOf(player[3]).Kind() == reflect.Bool {
3636
player[3] = ""

0 commit comments

Comments
 (0)