From 23d09487d8d27007b6f9aa689fa26895b763b34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Sat, 11 Oct 2025 10:09:19 -0300 Subject: [PATCH] if clause corrected --- libraries/earner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/earner.py b/libraries/earner.py index f6a447f..8c0afcc 100644 --- a/libraries/earner.py +++ b/libraries/earner.py @@ -251,7 +251,7 @@ class earner: earning_delta = target_earning_amount - Decimal(self.earning_balance) if earning_delta>Decimal(self.step_size) and time.time()-self.last_subscription_time>self.time_between_subscriptions: self.subscribe(earning_delta) - if earning_delta<-Decimal(self.step_size) and time.time()-self.last_redemption_time>self.time_between_redemptions: + elif earning_delta<-Decimal(self.step_size) and time.time()-self.last_redemption_time>self.time_between_redemptions: self.redeem(-earning_delta) #print(f"{str(self.connector)} - Difference: {earning_delta}") else: