Added activity filtering to statistics

This commit is contained in:
Eduard Urbach 2017-09-23 18:04:57 +02:00
parent e99f8e36e5
commit f2811ba648

View File

@ -45,6 +45,13 @@ func getUserStats() []*arn.PieChart {
avatar := stats{}
for _, info := range analytics {
user, err := arn.GetUser(info.UserID)
arn.PanicOnError(err)
if !user.IsActive() {
continue
}
pixelRatio[fmt.Sprintf("%.1f", info.Screen.PixelRatio)]++
size := arn.ToString(info.Screen.Width) + " x " + arn.ToString(info.Screen.Height)