FIX: select a period when 2/3 of the categories matches the criteria

This commit is contained in:
Régis Hanol 2016-08-29 23:50:48 +02:00
parent e064e6f7a3
commit 96513f3848
1 changed files with 1 additions and 1 deletions

View File

@ -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);