Skip to content

Commit 7bb18eb

Browse files
authored
Merge pull request #1054 from Bidaya0/bugfix/hook_profiles-agent-read-fix-error
fix(hookstrategy): fix query when agent pull hook policy.
2 parents 01121ba + 6e3284a commit 7bb18eb

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)