Skip to content

Commit 6e3284a

Browse files
committed
fix(hookstrategy): fix query when agent pull hook policy.
1 parent c685e4f commit 6e3284a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dongtai_protocol/views/hook_profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_profiles(user=None, language_id=JAVA, full=False, system_only=False):
6060
if not isinstance(hook_type, IastStrategyModel) else [4],
6161
created_by__in=[1, user.id] if user else [1],
6262
enable=const.HOOK_TYPE_ENABLE)
63-
& Q(system_type=1) if system_only else Q()).order_by('id')
63+
& (Q(system_type=1) if system_only else Q())).order_by('id')
6464
if full:
6565
from django.forms.models import model_to_dict
6666
if not strategies.count():

0 commit comments

Comments
 (0)