From 0ffb7818a02c2d9fba5040749a82ba8c024ebe5e Mon Sep 17 00:00:00 2001 From: sanguinedab <68048125+sanguinedab@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:41:00 +0800 Subject: [PATCH] fix adapter.py black format --- casbin_pymongo_adapter/adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/casbin_pymongo_adapter/adapter.py b/casbin_pymongo_adapter/adapter.py index 1accc2d..6829f5c 100644 --- a/casbin_pymongo_adapter/adapter.py +++ b/casbin_pymongo_adapter/adapter.py @@ -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