From f199ecf8e9086e80d81e68cb3bafe90f04ffadd8 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Wed, 27 Dec 2023 13:54:17 -0500 Subject: [PATCH] Final release fixes (#811) --- src/models/v2/notifications.rs | 1 + src/routes/v3/analytics_get.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/v2/notifications.rs b/src/models/v2/notifications.rs index a81a5b810..56f966f67 100644 --- a/src/models/v2/notifications.rs +++ b/src/models/v2/notifications.rs @@ -35,6 +35,7 @@ pub struct LegacyNotificationAction { } #[derive(Serialize, Deserialize)] +#[serde(tag = "type", rename_all = "snake_case")] pub enum LegacyNotificationBody { ProjectUpdate { project_id: ProjectId, diff --git a/src/routes/v3/analytics_get.rs b/src/routes/v3/analytics_get.rs index 6b81f1a2e..7447c1db3 100644 --- a/src/routes/v3/analytics_get.rs +++ b/src/routes/v3/analytics_get.rs @@ -497,7 +497,7 @@ fn condense_countries(countries: HashMap) -> HashMap { // Every country under '15' (view or downloads) should be condensed into 'XX' let mut hm = HashMap::new(); for (mut country, count) in countries { - if count < 15 { + if count < 50 { country = "XX".to_string(); } if !hm.contains_key(&country) {