Skip to content

Commit

Permalink
Fixed bayes_is_balanced function
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Oct 25, 2023
1 parent e551e09 commit 39ec03e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ body:
label: Version
description: What version of our software are you running?
options:
- v0.4.x
- v0.3.x
- v0.2.x or lower
validations:
Expand Down
2 changes: 1 addition & 1 deletion crates/smtp/src/scripts/plugins/bayes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub fn exec_is_balanced(ctx: PluginContext<'_>) -> Variable {
);
return Variable::default();
};
let learn_spam = ctx.arguments[2].to_bool();
let learn_spam = ctx.arguments[1].to_bool();

// Obtain training counts
let handle = ctx.handle;
Expand Down

0 comments on commit 39ec03e

Please sign in to comment.