mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:10:22 +08:00
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…
x
Reference in New Issue
Block a user