Island: Simplify logic to get data from request in IslandMode PUT
This commit is contained in:
parent
f652a489b7
commit
d56951f152
|
@ -21,7 +21,7 @@ class IslandMode(AbstractResource):
|
|||
@jwt_required
|
||||
def put(self):
|
||||
try:
|
||||
mode = IslandModeEnum(json.loads(request.data))
|
||||
mode = IslandModeEnum(request.json)
|
||||
|
||||
self._island_mode_service.set_mode(mode)
|
||||
|
||||
|
|
Loading…
Reference in New Issue