bolig_ping.filtering
source module bolig_ping.filtering
Filtering of scraped results.
Functions
-
filter_results — Filter the homes based on the given criteria.
source filter_results(homes: list[Home], search_query: SearchQuery) → list[Home]
Filter the homes based on the given criteria.
Parameters
-
homes : list[Home] — The homes to filter.
-
search_query : SearchQuery — The search query to filter the homes by.
Returns
-
list[Home] — The filtered homes.