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

@@ -37,8 +37,6 @@ class ParksNPeaks(HTTPProvider):
# If this is POTA, SOTA or WWFF data we already have it through other means, so ignore.
if spot.sig not in ["POTA", "SOTA", "WWFF"]:
logging.warn("PNP spot found with sig " + spot.sig + ", developer needs to figure out how to look this up for grid/lat/lon!")
# Fill in any missing data
spot.infer_missing()
# Add to our list. Don't worry about de-duping, removing old spots etc. at this point; other code will do
# that for us.
new_spots.append(spot)