Come up with a common base class for backwards-compatibility translation wrappers between the different API versions #143

This commit is contained in:
Ian Renton
2026-09-24 21:47:09 +01:00
parent 0ce3ca8d29
commit 81166dccab
9 changed files with 419 additions and 459 deletions
+1
View File
@@ -222,6 +222,7 @@ class APISpotHandler(tornado.web.RequestHandler):
# duplicate with what immediately comes back from the API. But if we weren't asked to send it upstream, or
# we were but it failed, we should still add it to our database anyway.
if not submit_upstream or upstream_warning:
spot.source = "API"
spot.infer_missing()
self._spots.set(spot.id, spot)