From a1534257e6c76eae299286918fec72c3c3a4c885 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sat, 3 Feb 2024 21:50:36 -0500 Subject: [PATCH] Debugging. --- owrx/controllers/settings/sdr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/owrx/controllers/settings/sdr.py b/owrx/controllers/settings/sdr.py index 50088ec6..b06bc0f6 100644 --- a/owrx/controllers/settings/sdr.py +++ b/owrx/controllers/settings/sdr.py @@ -429,12 +429,15 @@ class SdrProfileController(SdrFormControllerWithModal): return self.send_redirect("{}settings/sdr/{}".format(self.get_document_root(), quote(self.device_id))) def moveProfileUp(self): + logger.debug("@@@ PROFILE UP: " + self.profile_id) return self.moveProfile(self.profile_id, False) def moveProfileDown(self): + logger.debug("@@@ PROFILE DOWN: " + self.profile_id) return self.moveProfile(self.profile_id, True) def moveProfile(self, id: str, moveDown: bool): + logger.debug("@@@ MOVE_PROFILE") if id is None or id not in self.device["profiles"]: return self.send_response("profile not found", code=404) ids = list(self.device["profiles"].keys()) @@ -449,6 +452,7 @@ class SdrProfileController(SdrFormControllerWithModal): del self.device["profiles"][id] self.device["profiles"][id] = profile config.store() + logger.debug("@@@ ORDER: {0}".format(profiles)) return self.send_redirect("{}settings/sdr/{}".format(self.get_document_root(), quote(self.device_id)))