From c1ad535302a8474ee75bdd130aaf5107e7d22612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Sat, 11 Oct 2025 09:58:25 -0300 Subject: [PATCH] Removed 0 earning balance conditional --- .gitignore | 3 ++- libraries/earner.py | 4 ++-- main.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7c140b7..2bb5703 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ keys/api_credentials.db *.pyc *.pyo credentials.py -some_tests.py \ No newline at end of file +some_tests.py +tests.py \ No newline at end of file diff --git a/libraries/earner.py b/libraries/earner.py index 75925f5..f6a447f 100644 --- a/libraries/earner.py +++ b/libraries/earner.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: diff --git a/main.py b/main.py index bb69a62..b3880f5 100644 --- a/main.py +++ b/main.py @@ -483,7 +483,7 @@ signal.signal(signal.SIGTERM, shutdown_handler) if __name__=="__main__": - version = "2025.08.19" + version = "2025.10.11" start_time = time.time() with open("config.json") as f: