fix poles operators

This commit is contained in:
Guillermo Roche 2024-09-25 19:37:10 +02:00
parent 8678b3035b
commit 86c898e543
Signed by: groche97
GPG Key ID: 041FB85BEEA4B9B0

View File

@ -52,8 +52,8 @@ fn check_group_points(msg: &teloxide::prelude::Message, rw: Rewards) -> bool {
let ret = data.check_group_points(&msg.chat.id.to_string(), let ret = data.check_group_points(&msg.chat.id.to_string(),
&Local::now().format("%Y-%m-%d").to_string()); &Local::now().format("%Y-%m-%d").to_string());
match rw { match rw {
Rewards::PLATA => ret < (Rewards::PLATA as i64 + Rewards::POLE as i64), Rewards::PLATA => ret == (Rewards::POLE as i64),
Rewards::FAIL => ret < (Rewards::FAIL as i64 + Rewards::PLATA as i64 + Rewards::POLE as i64), Rewards::FAIL => ret == (Rewards::PLATA as i64 + Rewards::POLE as i64),
_=> false, _=> false,
} }
} }