Added activity filtering to statistics
This commit is contained in:
parent
e99f8e36e5
commit
f2811ba648
@ -45,6 +45,13 @@ func getUserStats() []*arn.PieChart {
|
|||||||
avatar := stats{}
|
avatar := stats{}
|
||||||
|
|
||||||
for _, info := range analytics {
|
for _, info := range analytics {
|
||||||
|
user, err := arn.GetUser(info.UserID)
|
||||||
|
arn.PanicOnError(err)
|
||||||
|
|
||||||
|
if !user.IsActive() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
pixelRatio[fmt.Sprintf("%.1f", info.Screen.PixelRatio)]++
|
pixelRatio[fmt.Sprintf("%.1f", info.Screen.PixelRatio)]++
|
||||||
|
|
||||||
size := arn.ToString(info.Screen.Width) + " x " + arn.ToString(info.Screen.Height)
|
size := arn.ToString(info.Screen.Width) + " x " + arn.ToString(info.Screen.Height)
|
||||||
|
Loading…
Reference in New Issue
Block a user