fix poles operators
This commit is contained in:
		
							parent
							
								
									8678b3035b
								
							
						
					
					
						commit
						86c898e543
					
				| @ -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(), | ||||
|         &Local::now().format("%Y-%m-%d").to_string()); | ||||
|     match rw { | ||||
|         Rewards::PLATA => ret < (Rewards::PLATA as i64 + Rewards::POLE as i64), | ||||
|         Rewards::FAIL => ret < (Rewards::FAIL as i64 + Rewards::PLATA as i64 + Rewards::POLE as i64), | ||||
|         Rewards::PLATA => ret == (Rewards::POLE as i64), | ||||
|         Rewards::FAIL => ret == (Rewards::PLATA as i64 + Rewards::POLE as i64), | ||||
|         _=> false, | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user