Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ad90a6abb | ||
|
|
8cdd5ff015 |
@@ -234,6 +234,10 @@ class MinerData:
|
|||||||
def as_csv(self) -> str:
|
def as_csv(self) -> str:
|
||||||
data = self.asdict()
|
data = self.asdict()
|
||||||
data["datetime"] = str(int(time.mktime(data["datetime"].timetuple())))
|
data["datetime"] = str(int(time.mktime(data["datetime"].timetuple())))
|
||||||
|
errs = []
|
||||||
|
for error in data["errors"]:
|
||||||
|
errs.append(error["error_message"])
|
||||||
|
data["errors"] = "; ".join(errs)
|
||||||
data_list = [str(data[item]) for item in data]
|
data_list = [str(data[item]) for item in data]
|
||||||
return ", ".join(data_list)
|
return ", ".join(data_list)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "pyasic"
|
name = "pyasic"
|
||||||
version = "0.18.2"
|
version = "0.18.3"
|
||||||
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
|
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
|
||||||
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
||||||
repository = "https://github.com/UpstreamData/pyasic"
|
repository = "https://github.com/UpstreamData/pyasic"
|
||||||
|
|||||||
Reference in New Issue
Block a user