bug: fix more parsing issues.

This commit is contained in:
Brett Rowan
2024-09-01 16:47:53 -06:00
parent f2838cf31d
commit 6415de8c73
2 changed files with 5 additions and 0 deletions

View File

@@ -271,7 +271,10 @@ If you are sure you want to use this command please use API.send_command("{comma
str_data = str_data.replace("info", "1nfo")
str_data = str_data.replace("inf", "0")
str_data = str_data.replace("1nfo", "info")
str_data = str_data.replace("nano", "n4no")
str_data = str_data.replace("nan", "0")
str_data = str_data.replace("n4no", "nano")
# fix whatever this garbage from avalonminers is `,"id":1}`
if str_data.startswith(","):
str_data = f"{{{str_data[1:]}"