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