Various changes
This commit is contained in:
parent
a42591c701
commit
c388059f68
19 changed files with 1373 additions and 87 deletions
|
|
@ -35,7 +35,11 @@ pub async fn get_pois(
|
|||
.categories
|
||||
.as_deref()
|
||||
.filter(|text| !text.is_empty())
|
||||
.map(|text| text.split(',').map(|part| part.trim().to_string()).collect());
|
||||
.map(|text| {
|
||||
text.split(',')
|
||||
.map(|part| part.trim().to_string())
|
||||
.collect()
|
||||
});
|
||||
|
||||
let num_categories = category_filter.as_ref().map(|cats| cats.len()).unwrap_or(0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue