lgtm
This commit is contained in:
parent
8708bf000d
commit
11711c57e6
38 changed files with 5361 additions and 265 deletions
|
|
@ -49,8 +49,8 @@ fn seo_page_for_path(path: &str) -> Option<SeoPage> {
|
|||
match path {
|
||||
"/" => Some(SeoPage {
|
||||
canonical_path: "/",
|
||||
title: "Perfect Postcode - Find where to buy before browsing listings",
|
||||
description: "Search every postcode by budget, commute, schools, safety, noise, broadband, prices and more. Build a better home-buying shortlist before viewings.",
|
||||
title: "Find the best postcodes and areas to live in England | Perfect Postcode",
|
||||
description: "Discover where to live by comparing England postcodes by budget, commute, schools, crime, noise, broadband, property prices and local amenities before viewing homes.",
|
||||
indexable: true,
|
||||
}),
|
||||
"/learn" | "/support" => Some(SeoPage {
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ pub async fn get_export(
|
|||
}
|
||||
|
||||
// Sort by property count descending
|
||||
postcode_aggs.sort_unstable_by(|lhs, rhs| rhs.1.count.cmp(&lhs.1.count));
|
||||
postcode_aggs.sort_unstable_by_key(|agg| std::cmp::Reverse(agg.1.count));
|
||||
|
||||
// Sample if too many postcodes
|
||||
let was_sampled = postcode_aggs.len() > MAX_EXPORT_POSTCODES;
|
||||
|
|
@ -307,7 +307,7 @@ pub async fn get_export(
|
|||
postcode_aggs.swap(pick, swap_idx);
|
||||
}
|
||||
postcode_aggs.truncate(MAX_EXPORT_POSTCODES);
|
||||
postcode_aggs.sort_unstable_by(|lhs, rhs| rhs.1.count.cmp(&lhs.1.count));
|
||||
postcode_aggs.sort_unstable_by_key(|agg| std::cmp::Reverse(agg.1.count));
|
||||
}
|
||||
|
||||
// Determine column order: filter features first, then remaining
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue