Skip to content

Commit

Permalink
sprintfix: 修复按插件名称搜索异常的问题 (fixed #1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Jul 12, 2023
1 parent fa57719 commit e5698e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/core/ipchooser/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def handle_plugin_conditions(

if condition["key"] in ["source_id", "plugin_name"]:
key: str = {"source_id": "source_id", "plugin_name": "name"}[condition["key"]]
sql_params.extend(values)
sql_params.extend([f'"{cond_val}"' for cond_val in values])
wheres.append(
f'{node_man_models.ProcessStatus._meta.db_table}.{key} in ({",".join(["%s"] * len(values))})'
)
Expand Down

0 comments on commit e5698e8

Please sign in to comment.