mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-25 00:34:32 +00:00
Come up with a common base class for backwards-compatibility translation wrappers between the different API versions #143
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user