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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ pub struct LegacyNotificationAction {
}
#[derive(Serialize, Deserialize)]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum LegacyNotificationBody {
ProjectUpdate {
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'
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) {