From 400ed3541dadb4ea83346fd53f900db85a809b22 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 3 Mar 2021 22:10:19 +0100 Subject: [PATCH] update "new sdr" routing too to avoid conflicts --- owrx/controllers/settings/sdr.py | 2 +- owrx/http.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/owrx/controllers/settings/sdr.py b/owrx/controllers/settings/sdr.py index 9d61427..307509f 100644 --- a/owrx/controllers/settings/sdr.py +++ b/owrx/controllers/settings/sdr.py @@ -84,7 +84,7 @@ class SdrDeviceListController(AuthorizationMixin, WebpageController): {devices}
- Add new device... + Add new device...
""".format( devices="".join(render_device(key, value) for key, value in Config.get()["sdrs"].items()) diff --git a/owrx/http.py b/owrx/http.py index 0abdf7e..aa98590 100644 --- a/owrx/http.py +++ b/owrx/http.py @@ -121,9 +121,9 @@ class Router(object): "/settings/general", GeneralSettingsController, method="POST", options={"action": "processFormData"} ), StaticRoute("/settings/sdr", SdrDeviceListController), - StaticRoute("/settings/sdr/new", NewSdrDeviceController), + StaticRoute("/settings/newsdr", NewSdrDeviceController), StaticRoute( - "/settings/sdr/new", NewSdrDeviceController, method="POST", options={"action": "processFormData"} + "/settings/newsdr", NewSdrDeviceController, method="POST", options={"action": "processFormData"} ), RegexRoute("^/settings/sdr/([^/]+)$", SdrDeviceController), RegexRoute(