SPlit up
Some checks failed
CI / Check (push) Failing after 1m58s
Build and publish Docker image / build-and-push (push) Failing after 1m5s

This commit is contained in:
Andras Schmelczer 2026-06-12 21:51:37 +01:00
parent cf39ad754e
commit f59d01227b
91 changed files with 10370 additions and 7562 deletions

View file

@ -184,12 +184,19 @@ pub async fn get_postcode_stats(
"GET /api/postcode-stats"
);
let crime_latest_year = if crime_by_year.is_empty() {
None
} else {
stats::crime_latest_available_year(&state.crime_by_year)
};
Ok(HexagonStatsResponse {
count: total_count,
numeric_features,
enum_features: enum_features_out,
price_history,
crime_by_year,
crime_latest_year,
central_postcode: None,
filter_exclusions,
})