Updated README
This commit is contained in:
@ -43,6 +43,7 @@ func getUserStats() []*arn.PieChart {
|
||||
os := stats{}
|
||||
notifications := stats{}
|
||||
activity := stats{}
|
||||
avatar := stats{}
|
||||
|
||||
for _, info := range analytics {
|
||||
pixelRatio[fmt.Sprintf("%.1f", info.Screen.PixelRatio)]++
|
||||
@ -52,7 +53,7 @@ func getUserStats() []*arn.PieChart {
|
||||
}
|
||||
|
||||
for user := range arn.MustStreamUsers() {
|
||||
if user.Gender != "" {
|
||||
if user.Gender != "" && user.Gender != "other" {
|
||||
gender[user.Gender]++
|
||||
}
|
||||
|
||||
@ -83,6 +84,12 @@ func getUserStats() []*arn.PieChart {
|
||||
} else {
|
||||
activity["Inactive"]++
|
||||
}
|
||||
|
||||
if user.Avatar.Source == "" {
|
||||
avatar["none"]++
|
||||
} else {
|
||||
avatar[user.Avatar.Source]++
|
||||
}
|
||||
}
|
||||
|
||||
println("Finished user statistics")
|
||||
@ -92,6 +99,7 @@ func getUserStats() []*arn.PieChart {
|
||||
arn.NewPieChart("Screen size", screenSize),
|
||||
arn.NewPieChart("Browser", browser),
|
||||
arn.NewPieChart("Country", country),
|
||||
arn.NewPieChart("Avatar", avatar),
|
||||
arn.NewPieChart("Activity", activity),
|
||||
arn.NewPieChart("Notifications", notifications),
|
||||
arn.NewPieChart("Gender", gender),
|
||||
|
Reference in New Issue
Block a user