Skip to content

Commit

Permalink
approv fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
banq committed Aug 22, 2018
1 parent 07ceca5 commit 910fafb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified doc/tomcat/lib/jaas.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ public void start() {
Runnable task = new Runnable() {
public void run() {
init();
getApprovedThreads(150);
}
};
ScheduledExecutorUtil.scheduExecStatic.scheduleAtFixedRate(task, 0,
60 * 60 * 24 * 30, TimeUnit.SECONDS);
60 * 60 * 12, TimeUnit.SECONDS);

}

Expand All @@ -96,6 +97,7 @@ public void init() {
resultSort.setOrder_DESCENDING();
approvedListSpec.setResultSort(resultSort);
refresh = true;
maxStart = -1;
}

public Collection<Long> getApprovedThreads(int start) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public boolean isApproved(ForumThread thread, Account account) {
}

protected boolean isGoodBlog(ForumThread thread, Account account) {
return (hasTags(thread, 1) && isGoodAuthor(account, 50) && isDigged(
return (hasTags(thread, 1) && isGoodAuthor(account, 2) && isDigged(
thread, 1));
}

protected boolean isExcelledDiscuss(ForumThread thread) {
return (hasTags(thread, 2) && isDigged(thread, 2) && hasReply(thread, 1));
return (hasTags(thread, 1) && hasReply(thread, 2));

}

Expand Down

0 comments on commit 910fafb

Please sign in to comment.