mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-25 21:45:25 -04:00
Fixed issues with watch list at startup
This commit is contained in:
parent
01cd0a0327
commit
e2e58530b2
@ -97,8 +97,11 @@ class WatchList(objectstore.ObjectStoreMixin):
|
|||||||
We put this here so any notification plugin can use this
|
We put this here so any notification plugin can use this
|
||||||
same test.
|
same test.
|
||||||
"""
|
"""
|
||||||
age = self.age(callsign)
|
if not self.callsign_in_watchlist(callsign):
|
||||||
|
return False
|
||||||
|
|
||||||
|
age = self.age(callsign)
|
||||||
|
if age:
|
||||||
delta = utils.parse_delta_str(age)
|
delta = utils.parse_delta_str(age)
|
||||||
d = datetime.timedelta(**delta)
|
d = datetime.timedelta(**delta)
|
||||||
|
|
||||||
@ -108,3 +111,5 @@ class WatchList(objectstore.ObjectStoreMixin):
|
|||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user