Paramétrage des compendiums de recherche

This commit is contained in:
2023-01-17 21:51:49 +01:00
parent f7595a1bfe
commit f4d074fa31
8 changed files with 237 additions and 104 deletions

View File

@ -99,8 +99,7 @@ export class Environnement {
if (!milieux) {
milieux = await this.milieux()
}
const frequence = item => item.getRarete(milieux)?.frequence ?? 0;
return await this.table.buildTable(frequence, it => frequence(it) > 0 && filter(it));
return await this.table.buildTable(it => it.getFrequence(), filter);
}
async getElements(itemFrequence, filter) {