reformatted and fixed a bunch of small formatting related issues

This commit is contained in:
UpstreamData
2022-01-05 13:00:55 -07:00
parent c26a2cc99e
commit 8ef135dfd7
13 changed files with 360 additions and 343 deletions

View File

@@ -46,7 +46,7 @@ class BaseMinerAPI:
for item in commands:
# make sure we can actually run the command, otherwise it will fail
if item not in self.get_commands():
# if the command isnt allowed, remove it
# if the command isn't allowed, remove it
print(f"Removing incorrect command: {item}")
commands.remove(item)

View File

@@ -104,9 +104,6 @@ class BOSMinerAPI(BaseMinerAPI):
Returns a dict containing stats for all device/pool with more than 1 getwork,
ignoring zombie devices.
Parameters:
old (optional): include zombie devices that became zombies less than 'old' seconds ago.
"""
return await self.send_command("estats")

View File

@@ -1,6 +1,6 @@
from API import BaseMinerAPI, APIError
from passlib.handlers import md5_crypt
from passlib.handlers.md5_crypt import md5_crypt
import asyncio
import re
import json