perf: 优化 json m2m filter

pull/10722/head
ibuler 2023-06-14 21:10:35 +08:00
parent 7c31b4ee30
commit ee15f2d3d7
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class JSONManyToManyDescriptor:
value = [value.id]
value = set(map(str, value))
rule_value = set(map(str, rule_value))
res &= rule_value.issubset(value)
res &= value.issubset(rule_value)
else:
logging.error("unknown match: {}".format(rule['match']))
res &= False