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)))