mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 06:40:27 +00:00
Limit country list.
This commit is contained in:
@@ -150,6 +150,10 @@ func GetCountry(startDate, endDate time.Time) []pirsch.CountryStats {
|
|||||||
countries[i].CountryCode.String = strings.ToUpper(countries[i].CountryCode.String)
|
countries[i].CountryCode.String = strings.ToUpper(countries[i].CountryCode.String)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(countries) > 10 {
|
||||||
|
return countries[:10]
|
||||||
|
}
|
||||||
|
|
||||||
return countries
|
return countries
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user