mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-02-04 09:14:30 +00:00
Allow providers to be off-by-default in the web UI. Closes #93
This commit is contained in:
@@ -40,6 +40,7 @@ class APIOptionsHandler(tornado.web.RequestHandler):
|
||||
# one of our proviers.
|
||||
if ALLOW_SPOTTING:
|
||||
options["spot_sources"].append("API")
|
||||
options["web-ui-options"]["spot-providers-enabled-by-default"].append("API")
|
||||
|
||||
self.write(json.dumps(options, default=serialize_everything))
|
||||
self.set_status(200)
|
||||
|
||||
Reference in New Issue
Block a user