Fix falsy zero lat/lon bug

This commit is contained in:
Jack Kingsman
2026-02-10 21:09:29 -08:00
parent a1e71922bc
commit a61e271e9a
3 changed files with 12 additions and 11 deletions
+3 -3
View File
@@ -31,9 +31,9 @@ class Contact(BaseModel):
"flags": self.flags,
"out_path": self.last_path or "",
"out_path_len": self.last_path_len,
"adv_lat": self.lat or 0.0,
"adv_lon": self.lon or 0.0,
"last_advert": self.last_advert or 0,
"adv_lat": self.lat if self.lat is not None else 0.0,
"adv_lon": self.lon if self.lon is not None else 0.0,
"last_advert": self.last_advert if self.last_advert is not None else 0,
}
@staticmethod