Debugging.
This commit is contained in:
parent
1521d4c893
commit
a1534257e6
|
|
@ -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)))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue