Removed 0 earning balance conditional
This commit is contained in:
parent
2a01477a5e
commit
c1ad535302
|
|
@ -5,4 +5,5 @@ keys/api_credentials.db
|
|||
*.pyc
|
||||
*.pyo
|
||||
credentials.py
|
||||
some_tests.py
|
||||
some_tests.py
|
||||
tests.py
|
||||
|
|
@ -247,8 +247,8 @@ class earner:
|
|||
if self.earning_balance is None:
|
||||
print(f"{str(self.connector).upper()} - There was an error fetching earning balance")
|
||||
else:
|
||||
if float(self.earning_balance)!=0:
|
||||
earning_delta = target_earning_amount - Decimal(self.earning_balance)
|
||||
#if float(self.earning_balance)!=0:
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue