Skip to content

Commit

Permalink
🎨 热榜算法修改
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed May 24, 2023
1 parent 47b34c1 commit e84514e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1256,10 +1256,10 @@ public void refreshHotArticlesCache() {
"FROM " +
" symphony_article " +
"WHERE " +
" articleLatestCmtTime > " + thirtyDaysAgo + " AND articleStatus <> 1 AND articleType <> 1 AND articleShowInList <> 0 " +
" articleCreateTime > " + thirtyDaysAgo + " AND articleStatus <> 1 AND articleType <> 1 AND articleShowInList <> 0 " +
"ORDER BY " +
" total_score DESC " +
"limit 100");
"limit 50");
ret.sort((o1, o2) -> {
long o1Time = o1.optLong(Article.ARTICLE_UPDATE_TIME);
long o2Time = o2.optLong(Article.ARTICLE_UPDATE_TIME);
Expand Down

0 comments on commit e84514e

Please sign in to comment.