Skip to content

Commit

Permalink
py lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong committed Dec 25, 2024
1 parent a5a521e commit 5d5d132
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions api/schedule/mail_clean_document_notify_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def send_document_clean_notify_task():
if not account:
continue

dataset_auto_dataset_map = {}
dataset_auto_dataset_map = {} # type: ignore
for dataset_auto_disable_log in tenant_dataset_auto_disable_logs:
dataset_auto_dataset_map[dataset_auto_disable_log.dataset_id].append(
dataset_auto_disable_log.document_id
Expand All @@ -53,11 +53,6 @@ def send_document_clean_notify_task():
document_count = len(document_ids)
knowledge_details.append(f"<li>Knowledge base {dataset.name}: {document_count} documents</li>")

html_content = render_template(
"clean_document_job_mail_template-US.html",
)
mail.send(to=to, subject="立即加入 Dify 工作空间", html=html_content)

end_at = time.perf_counter()
logging.info(
click.style("Send document clean notify mail succeeded: latency: {}".format(end_at - start_at), fg="green")
Expand Down

0 comments on commit 5d5d132

Please sign in to comment.