Only fill missing info if spot passes the timestamp check in submit(). Closes #14

This commit is contained in:
Ian Renton
2025-09-29 19:18:20 +01:00
parent 89a8db579e
commit cd575e7ed2
11 changed files with 17 additions and 23 deletions

View File

@@ -51,8 +51,7 @@ class APRSIS(Provider):
latitude=data["latitude"] if "latitude" in data else None,
longitude=data["longitude"] if "longitude" in data else None,
time=datetime.now(pytz.UTC)) # APRS-IS spots are live so we can assume spot time is "now"
# Fill in any blanks
spot.infer_missing()
# Add to our list
self.submit(spot)
print(spot)