diff --git a/app/contacts_cache.py b/app/contacts_cache.py index 94fd1a4..d8b1ba7 100644 --- a/app/contacts_cache.py +++ b/app/contacts_cache.py @@ -11,6 +11,7 @@ Each line: {"public_key": "...", "name": "...", "first_seen": ts, "last_seen": t import json import logging +import math import struct import time from pathlib import Path @@ -184,6 +185,11 @@ def parse_advert_payload(pkt_payload_hex: str): if has_location: if len(raw) >= 109: lat, lon = struct.unpack('