Skip to content

Commit

Permalink
fix adapter.py black format
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinedab authored Oct 25, 2024
1 parent 24443b9 commit 0ffb781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions casbin_pymongo_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def remove_filtered_policy(self, sec, ptype, field_index, *field_values):
if not (1 <= field_index + len(field_values) <= 6):
return False
query = {
f"v{index + field_index}": value
for index, value in enumerate(field_values)
f"v{index + field_index}": value
for index, value in enumerate(field_values)
if value != ""
}
query["ptype"] = ptype
Expand Down

0 comments on commit 0ffb781

Please sign in to comment.