update MinerData().as_influxdb() to include properties.

This commit is contained in:
UpstreamData
2022-08-25 15:34:04 -06:00
parent 2a49b89849
commit 094857758a

View File

@@ -119,7 +119,7 @@ class MinerData:
return setattr(self, key, value) return setattr(self, key, value)
def __iter__(self): def __iter__(self):
return iter([item for item in self.__dict__]) return iter([item for item in self.asdict()])
@property @property
def total_chips(self): # noqa - Skip PyCharm inspection def total_chips(self): # noqa - Skip PyCharm inspection