Skip to content

Commit

Permalink
fixup! fixup! fixup! sf_base: shopfloor.app display registered routes
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk authored and sebalix committed Mar 23, 2022
1 parent 8d23c03 commit 0d788de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shopfloor_base/models/shopfloor_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0d788de

Please sign in to comment.