mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Use the cleaned query as the reference query in the email notification
This commit is contained in:
parent
f24495e0e6
commit
b499851097
1 changed files with 1 additions and 1 deletions
|
@ -925,7 +925,7 @@ def scheduled_chat(query_to_run: str, scheduling_request: str, subject: str, use
|
|||
# Notify user if the AI response is satisfactory
|
||||
if should_notify(original_query=scheduling_request, executed_query=cleaned_query, ai_response=ai_response):
|
||||
if is_resend_enabled():
|
||||
send_task_email(user.get_short_name(), user.email, scheduling_request, ai_response, subject)
|
||||
send_task_email(user.get_short_name(), user.email, cleaned_query, ai_response, subject)
|
||||
else:
|
||||
return raw_response
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue