Fix users/full returning "" as the country

This commit is contained in:
Howl 2016-08-18 15:15:22 +02:00
parent 55d7621ef5
commit 67ae6ab3b8

View File

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