mirror of https://github.com/craigerl/aprsd.git
Fixed unit tests failing with WatchList
This commit is contained in:
parent
63f3de47b7
commit
c4b17eee9d
|
@ -21,9 +21,12 @@ class WatchList(objectstore.ObjectStoreMixin):
|
||||||
def __new__(cls, *args, **kwargs):
|
def __new__(cls, *args, **kwargs):
|
||||||
if cls._instance is None:
|
if cls._instance is None:
|
||||||
cls._instance = super().__new__(cls)
|
cls._instance = super().__new__(cls)
|
||||||
cls._instance._update_from_conf()
|
|
||||||
return cls._instance
|
return cls._instance
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
|
self._update_from_conf()
|
||||||
|
|
||||||
def _update_from_conf(self, config=None):
|
def _update_from_conf(self, config=None):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
if CONF.watch_list.enabled and CONF.watch_list.callsigns:
|
if CONF.watch_list.enabled and CONF.watch_list.callsigns:
|
||||||
|
|
Loading…
Reference in New Issue