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
1 changed files with 2 additions and 3 deletions

View File

@ -173,13 +173,12 @@ LIMIT 1
// Fuck.
r := userFullResponse{}
var (
badges string
country string
badges string
)
err := md.DB.QueryRow(query, param).Scan(
&r.ID, &r.Username, &r.RegisteredOn, &r.Privileges, &r.LatestActivity,
&r.UsernameAKA, &badges, &country,
&r.UsernameAKA, &badges, &r.Country,
&r.PlayStyle, &r.FavouriteMode,
&r.STD.RankedScore, &r.STD.TotalScore, &r.STD.PlayCount,