From 0d788de7c4bf337989b16d4aeb56ad8bd491b779 Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Wed, 16 Feb 2022 18:12:56 +0100 Subject: [PATCH] fixup! fixup! fixup! sf_base: shopfloor.app display registered routes --- shopfloor_base/models/shopfloor_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shopfloor_base/models/shopfloor_app.py b/shopfloor_base/models/shopfloor_app.py index 8d0faeec89..9017ac28d9 100644 --- a/shopfloor_base/models/shopfloor_app.py +++ b/shopfloor_base/models/shopfloor_app.py @@ -101,7 +101,9 @@ def _compute_registered_routes(self): routes = sorted(rec._registered_routes()) vals = [] for __, endpoint_rule in routes: - vals.append(f"{endpoint_rule.route} ({', '.join(endpoint_rule.routing['methods'])})") + vals.append( + f"{endpoint_rule.route} ({', '.join(endpoint_rule.routing['methods'])})" + ) rec.registered_routes = "\n".join(vals) @api.depends("profile_ids")