if clause corrected
This commit is contained in:
parent
c1ad535302
commit
23d09487d8
|
|
@ -251,7 +251,7 @@ class earner:
|
||||||
earning_delta = target_earning_amount - Decimal(self.earning_balance)
|
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:
|
if earning_delta>Decimal(self.step_size) and time.time()-self.last_subscription_time>self.time_between_subscriptions:
|
||||||
self.subscribe(earning_delta)
|
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)
|
self.redeem(-earning_delta)
|
||||||
#print(f"{str(self.connector)} - Difference: {earning_delta}")
|
#print(f"{str(self.connector)} - Difference: {earning_delta}")
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue