Fixed user lists

This commit is contained in:
Eduard Urbach 2018-03-04 15:20:21 +01:00
parent 2f507526fe
commit 17f8304dba

View File

@ -12,7 +12,7 @@ import (
// Active ... // Active ...
func Active(ctx *aero.Context) string { func Active(ctx *aero.Context) string {
users := arn.FilterUsers(func(user *arn.User) bool { users := arn.FilterUsers(func(user *arn.User) bool {
return user.IsActive() && user.HasAvatar() return user.HasAvatar() && user.HasNick() && user.IsActive()
}) })
followCount := map[*arn.User]int{} followCount := map[*arn.User]int{}
@ -80,7 +80,7 @@ func ActiveNoAvatar(ctx *aero.Context) string {
// Osu ... // Osu ...
func Osu(ctx *aero.Context) string { func Osu(ctx *aero.Context) string {
users := arn.FilterUsers(func(user *arn.User) bool { users := arn.FilterUsers(func(user *arn.User) bool {
return user.IsActive() && user.HasAvatar() && user.Accounts.Osu.PP > 0 return user.HasAvatar() && user.HasNick() && user.IsActive() && user.Accounts.Osu.PP > 0
}) })
// Sort by pp // Sort by pp
@ -98,7 +98,7 @@ func Osu(ctx *aero.Context) string {
// Overwatch ... // Overwatch ...
func Overwatch(ctx *aero.Context) string { func Overwatch(ctx *aero.Context) string {
users := arn.FilterUsers(func(user *arn.User) bool { users := arn.FilterUsers(func(user *arn.User) bool {
return user.IsActive() && user.HasAvatar() && user.Accounts.Overwatch.SkillRating > 0 return user.HasAvatar() && user.HasNick() && user.IsActive() && user.Accounts.Overwatch.SkillRating > 0
}) })
// Sort by Skill Ratings // Sort by Skill Ratings
@ -116,7 +116,7 @@ func Overwatch(ctx *aero.Context) string {
// Staff ... // Staff ...
func Staff(ctx *aero.Context) string { func Staff(ctx *aero.Context) string {
users := arn.FilterUsers(func(user *arn.User) bool { users := arn.FilterUsers(func(user *arn.User) bool {
return user.IsActive() && user.HasAvatar() && user.Role != "" return user.HasAvatar() && user.HasNick() && user.IsActive() && user.Role != ""
}) })
// Make order deterministic // Make order deterministic