add class value new_stat_data
This commit is contained in:
@@ -65,6 +65,7 @@ class IterRegistry(type):
|
|||||||
|
|
||||||
class Message(metaclass=IterRegistry):
|
class Message(metaclass=IterRegistry):
|
||||||
_registry = []
|
_registry = []
|
||||||
|
new_stat_data = {}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._registry.append(weakref.ref(self))
|
self._registry.append(weakref.ref(self))
|
||||||
@@ -103,11 +104,11 @@ class Message(metaclass=IterRegistry):
|
|||||||
|
|
||||||
def inc_counter(self, counter:str) -> None:
|
def inc_counter(self, counter:str) -> None:
|
||||||
self.db.inc_counter(counter)
|
self.db.inc_counter(counter)
|
||||||
self.new_data['proxy'] = True
|
self.new_stat_data['proxy'] = True
|
||||||
|
|
||||||
def dec_counter(self, counter:str) -> None:
|
def dec_counter(self, counter:str) -> None:
|
||||||
self.db.dec_counter(counter)
|
self.db.dec_counter(counter)
|
||||||
self.new_data['proxy'] = True
|
self.new_stat_data['proxy'] = True
|
||||||
|
|
||||||
def set_serial_no(self, serial_no : str):
|
def set_serial_no(self, serial_no : str):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user