mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 12:10:31 +08:00
code format
This commit is contained in:
@@ -110,7 +110,7 @@ def urls(url, order):
|
||||
column_length = 1
|
||||
else:
|
||||
rules = sorted(
|
||||
current_app.url_map.iter_rules(), key=lambda rule: getattr(rule, order)
|
||||
current_app.url_map.iter_rules(), key=lambda x: getattr(x, order)
|
||||
)
|
||||
for rule in rules:
|
||||
rows.append((rule.rule, rule.endpoint, None))
|
||||
|
Reference in New Issue
Block a user