Fix logic error in judge::send_debug
This commit is contained in:
parent
72432181db
commit
62473dea60
@ -96,13 +96,13 @@ impl Judgement {
|
||||
}
|
||||
|
||||
let mut result = JudgementResult::LikelyScam;
|
||||
if count_all == 0 {
|
||||
result = JudgementResult::Ok
|
||||
}
|
||||
if count_all < total {
|
||||
result = JudgementResult::MaybeScam
|
||||
}
|
||||
|
||||
if count_all == 0 {
|
||||
result = JudgementResult::Ok
|
||||
}
|
||||
|
||||
// Send message
|
||||
let msg = RoomMessageEventContent::text_html(
|
||||
format!("{counter:?}, {count_all}/{total}, {result:?}"),
|
||||
|
Loading…
Reference in New Issue
Block a user