Fix users/full returning "" as the country
This commit is contained in:
parent
55d7621ef5
commit
67ae6ab3b8
|
@ -173,13 +173,12 @@ LIMIT 1
|
||||||
// Fuck.
|
// Fuck.
|
||||||
r := userFullResponse{}
|
r := userFullResponse{}
|
||||||
var (
|
var (
|
||||||
badges string
|
badges string
|
||||||
country string
|
|
||||||
)
|
)
|
||||||
err := md.DB.QueryRow(query, param).Scan(
|
err := md.DB.QueryRow(query, param).Scan(
|
||||||
&r.ID, &r.Username, &r.RegisteredOn, &r.Privileges, &r.LatestActivity,
|
&r.ID, &r.Username, &r.RegisteredOn, &r.Privileges, &r.LatestActivity,
|
||||||
|
|
||||||
&r.UsernameAKA, &badges, &country,
|
&r.UsernameAKA, &badges, &r.Country,
|
||||||
&r.PlayStyle, &r.FavouriteMode,
|
&r.PlayStyle, &r.FavouriteMode,
|
||||||
|
|
||||||
&r.STD.RankedScore, &r.STD.TotalScore, &r.STD.PlayCount,
|
&r.STD.RankedScore, &r.STD.TotalScore, &r.STD.PlayCount,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user