Skip to content

Commit

Permalink
fix: 修复逻辑判断错误 #7545
Browse files Browse the repository at this point in the history
  • Loading branch information
guohelu committed Nov 12, 2024
1 parent 1185c28 commit 1d63db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ def check_engine_admin_permission(request, *args, **kwargs):
BROKER_URL = os.getenv("BKAPP_SOPS_BROKER_URL")
print(f"BROKER_URL: {BROKER_URL}")

# bk_chat通知
# bk_chat通知渠道
ENABLE_BK_CHAT_CHANNEL = True if env.ENABLE_BK_CHAT_CHANNEL else False
# bk_chat路由
BK_CHAT_ROUTE = env.BK_CHAT_ROUTE
2 changes: 1 addition & 1 deletion gcloud/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_footer_info(request):
def get_msg_types(request):
client = get_client_by_user(request.user.username)
result = client.cmsi.get_msg_type()
if settings.Enable_BK_CHAT_CHANNEL:
if settings.ENABLE_BK_CHAT_CHANNEL:
bk_chat = {
"type": "bk_chat",
"icon": None,
Expand Down

0 comments on commit 1d63db0

Please sign in to comment.