Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix os import #241

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions server/tasks/lark/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ def create_issue(
# 这里连三个表查询,所以一次性都查出来
code_users = get_code_users_by_openid([openid] + users)

import tasks

if openid not in code_users:
host = os.environ.get("DOMAIN")

import tasks

return tasks.send_manage_fail_message(
f"[请点击绑定 GitHub 账号后重试]({host}/api/github/oauth)",
app_id,
Expand Down Expand Up @@ -455,11 +455,11 @@ def sync_issue(
# 这里连三个表查询,所以一次性都查出来
code_users = get_code_users_by_openid([openid])

import tasks

if openid not in code_users:
host = os.environ.get("DOMAIN")

import tasks

return tasks.send_manage_fail_message(
f"[请点击绑定 GitHub 账号后重试]({host}/api/github/oauth)",
app_id,
Expand Down
Loading