mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 16:59:25 +00:00
Only fill missing info if spot passes the timestamp check in submit(). Closes #14
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user