1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-18 11:41:29 +00:00

bayes: properly reset score when going good -> ugly

article: add helper to refresh article score pic, properly set scorepic title
This commit is contained in:
Andrew Dolgov
2015-06-17 22:04:32 +03:00
parent 308c55c0f1
commit a72cd54ce1
4 changed files with 45 additions and 3 deletions

View File

@@ -79,14 +79,14 @@ class Af_Sort_Bayes extends Plugin {
switch ($current_category) {
case "UGLY":
$dst_category = "BAD";
$score = -$this->score_modifier;
$score = $this->score_modifier;
break;
case "BAD":
$dst_category = "BAD";
break;
case "GOOD":
$dst_category = "UGLY";
$score = -$this->score_modifier;
$score = 0;
break;
}
}