Skip to content

Commit dcf52a3

Browse files
committed
fix formatting with black
1 parent 18620f1 commit dcf52a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

casbin/model/model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ def sort_policies_by_priority(self):
126126

127127
assertion.policy = sorted(
128128
assertion.policy,
129-
key=lambda x: int(x[assertion.priority_index]) if x[assertion.priority_index].isdigit() else
130-
x[assertion.priority_index]
129+
key=lambda x: int(x[assertion.priority_index])
130+
if x[assertion.priority_index].isdigit()
131+
else x[assertion.priority_index],
131132
)
132133

133134
for i, policy in enumerate(assertion.policy):

0 commit comments

Comments
 (0)