Final release fixes (#811)

This commit is contained in:
Geometrically
2023-12-27 13:54:17 -05:00
committed by GitHub
parent 3bdd551d40
commit f199ecf8e9
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

View File

@@ -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) {