Update filtering

This commit is contained in:
Sik Yoon 2024-05-26 08:22:38 +09:00
parent 02251bb171
commit 1c8f0d1eec
2 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,8 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box<dyn std::err
is_sell = true; is_sell = true;
} else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 { } else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 {
is_sell = true; is_sell = true;
} else if server_epoch - element.registered_server_epoch > 1_800_000 * 6 {
is_sell = true;
} }
if is_sell == true { if is_sell == true {

View File

@ -335,6 +335,8 @@ pub async fn list_up_for_sell(all_data: &AllData) -> Result<(), Box<dyn std::err
is_sell = true; is_sell = true;
} else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 { } else if target_profit_percent.is_normal() && element.pure_profit_percent < target_profit_percent * -1.5 {
is_sell = true; is_sell = true;
} else if server_epoch - element.registered_server_epoch > 1_800_000 * 6 {
is_sell = true;
} }
if is_sell == true { if is_sell == true {