From ba86c76ad60784dd980dbef87a1d288f62d12509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Sun, 2 Mar 2025 20:33:14 -0300 Subject: [PATCH] Fix in restart_pair_no_json() --- changelog.txt | 3 +++ main.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 178c5f0..972eb37 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2025.03.02: +. Fixed an error in restart_pair_no_json() + 2025.03.01: . StatusHandler initial implementation. . Variable cleanup diff --git a/main.py b/main.py index 401dbd2..1083169 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,7 @@ In case the permissions of the certificate changes, reset them this way: # ll /etc/letsencrypt/ ''' -version = "2025.03.01" +version = "2025.03.02" ''' Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors @@ -243,7 +243,7 @@ def restart_pair_no_json(base: str, quote: str) -> int: if f"{base}/{quote}"==x.pair: x.pause = True #Backing up old status file - x.write_status_file(True) + x.status.save_to_file(is_backup=True) #Here, we could open a duster (if needed) for order in order_list: if order["symbol"]==f"{base}/{quote}" and x.config.get_is_short() and order["side"]=="sell":