Skip to content

Commit 2d60587

Browse files
committed
fix: apply ruff format to controller
1 parent 00e3dee commit 2d60587

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • spp_farmer_registry/controllers

spp_farmer_registry/controllers/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ class FarmerRegistryController(http.Controller):
99
def get_registry_restriction(self):
1010
"""Return whether registry CRUD is restricted to admin only."""
1111
ICP = request.env["ir.config_parameter"].sudo() # nosemgrep
12-
value = ICP.get_param(
13-
"spp_farmer_registry.registry_admin_only_crud", "False"
14-
)
12+
value = ICP.get_param("spp_farmer_registry.registry_admin_only_crud", "False")
1513
return {"restricted": value == "True"}

0 commit comments

Comments
 (0)