add class value new_stat_data

This commit is contained in:
Stefan Allius
2023-11-01 21:14:22 +01:00
parent 7a2667767e
commit bcc901ba4c

View File

@@ -65,7 +65,8 @@ class IterRegistry(type):
class Message(metaclass=IterRegistry):
_registry = []
new_stat_data = {}
def __init__(self):
self._registry.append(weakref.ref(self))
self.header_valid = False
@@ -103,11 +104,11 @@ class Message(metaclass=IterRegistry):
def inc_counter(self, counter:str) -> None:
self.db.inc_counter(counter)
self.new_data['proxy'] = True
self.new_stat_data['proxy'] = True
def dec_counter(self, counter:str) -> None:
self.db.dec_counter(counter)
self.new_data['proxy'] = True
self.new_stat_data['proxy'] = True
def set_serial_no(self, serial_no : str):