mirror of
https://github.com/aclist/dztui.git
synced 2026-11-05 17:45:10 +01:00
chore: dynamic statusbar WIP
This commit is contained in:
1 parent
936bc074a5
commit
e794aa82dc
6 files changed
+49
-87
No files matched your search
+2
-1
@@ -67,13 +67,14 @@ class CalcDist(multiprocessing.Process):
|
||||
self.result_queue.put([self.addr, dist, self.enum])
|
||||
|
||||
def compare(self, remote: str) -> int | None:
|
||||
# TODO: cache this
|
||||
prefs = self.controller.get_prefs()
|
||||
local = prefs.coords
|
||||
if local is None:
|
||||
return None
|
||||
try:
|
||||
remote = get_coords(prefs.paths.ips, remote)
|
||||
except GeolocationError:
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
# TODO: handle failed remote dist
|
||||
|
||||
Reference in new issue
Block a user