FIX: select a period when 2/3 of the categories matches the criteria
This commit is contained in:
parent
e064e6f7a3
commit
96513f3848
|
@ -14,7 +14,7 @@ CategoryList.reopenClass({
|
|||
const list = Discourse.Category.list();
|
||||
|
||||
let statPeriod;
|
||||
const minCategories = result.category_list.categories.length * 0.8;
|
||||
const minCategories = result.category_list.categories.length * 0.66;
|
||||
|
||||
["week", "month"].some(period => {
|
||||
const filteredCategories = result.category_list.categories.filter(c => c[`topics_${period}`] > 0);
|
||||
|
|
Loading…
Reference in New Issue