You've already forked AstralRinth
forked from didirus/AstralRinth
Final release fixes (#811)
This commit is contained in:
@@ -35,6 +35,7 @@ pub struct LegacyNotificationAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
|
#[serde(tag = "type", rename_all = "snake_case")]
|
||||||
pub enum LegacyNotificationBody {
|
pub enum LegacyNotificationBody {
|
||||||
ProjectUpdate {
|
ProjectUpdate {
|
||||||
project_id: ProjectId,
|
project_id: ProjectId,
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ fn condense_countries(countries: HashMap<String, u64>) -> HashMap<String, u64> {
|
|||||||
// Every country under '15' (view or downloads) should be condensed into 'XX'
|
// Every country under '15' (view or downloads) should be condensed into 'XX'
|
||||||
let mut hm = HashMap::new();
|
let mut hm = HashMap::new();
|
||||||
for (mut country, count) in countries {
|
for (mut country, count) in countries {
|
||||||
if count < 15 {
|
if count < 50 {
|
||||||
country = "XX".to_string();
|
country = "XX".to_string();
|
||||||
}
|
}
|
||||||
if !hm.contains_key(&country) {
|
if !hm.contains_key(&country) {
|
||||||
|
|||||||
Reference in New Issue
Block a user