feature: add keys to miner data.
This commit is contained in:
@@ -379,6 +379,9 @@ class MinerData:
|
|||||||
def algo(self, val):
|
def algo(self, val):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def keys(self) -> list:
|
||||||
|
return [f.name for f in fields(self)]
|
||||||
|
|
||||||
def asdict(self) -> dict:
|
def asdict(self) -> dict:
|
||||||
return asdict(self, dict_factory=self.dict_factory)
|
return asdict(self, dict_factory=self.dict_factory)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user