fix(ui): учитывать весь каталог Community в оптимизаторе

This commit is contained in:
Denozordec committed 2026-10-04 22:15:00 +07:00
1 parent 53603f17c1
commit 991f2b3871
9 files changed
+100 -12

No files matched your search

+1 -1
View File
@@ -542,7 +542,7 @@ export function buildLiveOptimizerData(
sorted.sort((a, b) => b.probabilityOptimal - a.probabilityOptimal)
const best = sorted[0] ?? null
const commRecs: CommRec[] = flatRules.filter(rule=>rule.sourceServerId===home.id).slice(0, 24).map((rule) => {
const commRecs: CommRec[] = flatRules.filter(rule=>rule.sourceServerId===home.id).map((rule) => {
const curProb = 38 + (rule.community.length % 12)
const recProb = best ? Math.min(92, curProb + 18 + (best.score % 10)) : curProb
const rec = best