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;
|
let mut result = JudgementResult::LikelyScam;
|
||||||
if count_all == 0 {
|
|
||||||
result = JudgementResult::Ok
|
|
||||||
}
|
|
||||||
if count_all < total {
|
if count_all < total {
|
||||||
result = JudgementResult::MaybeScam
|
result = JudgementResult::MaybeScam
|
||||||
}
|
}
|
||||||
|
if count_all == 0 {
|
||||||
|
result = JudgementResult::Ok
|
||||||
|
}
|
||||||
|
|
||||||
// Send message
|
// Send message
|
||||||
let msg = RoomMessageEventContent::text_html(
|
let msg = RoomMessageEventContent::text_html(
|
||||||
format!("{counter:?}, {count_all}/{total}, {result:?}"),
|
format!("{counter:?}, {count_all}/{total}, {result:?}"),
|
||||||
|
Loading…
Reference in New Issue
Block a user