Fixed unit tests failing with WatchList

This commit is contained in:
Hemna 2024-04-24 16:27:40 -04:00
parent 63f3de47b7
commit c4b17eee9d
1 changed files with 4 additions and 1 deletions

View File

@ -21,9 +21,12 @@ class WatchList(objectstore.ObjectStoreMixin):
def __new__(cls, *args, **kwargs):
if cls._instance is None:
cls._instance = super().__new__(cls)
cls._instance._update_from_conf()
return cls._instance
def __init__(self):
super().__init__()
self._update_from_conf()
def _update_from_conf(self, config=None):
with self.lock:
if CONF.watch_list.enabled and CONF.watch_list.callsigns: