mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-05 08:10:12 +01:00
incomplete implementation to extend a callsign location
This commit is contained in:
parent
e24de8334f
commit
b1742dafc2
|
|
@ -77,6 +77,13 @@ class Map(object):
|
|||
]
|
||||
)
|
||||
|
||||
def touchLocation(self, callsign):
|
||||
# not implemented on the client side yet, so do not use!
|
||||
ts = datetime.now()
|
||||
if callsign in self.positions:
|
||||
self.positions[callsign]["updated"] = ts
|
||||
self.broadcast([{"callsign": callsign, "lastseen": ts.timestamp() * 1000}])
|
||||
|
||||
def removeLocation(self, callsign):
|
||||
self.positions.pop(callsign, None)
|
||||
# TODO broadcast removal to clients
|
||||
|
|
|
|||
Loading…
Reference in a new issue