mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Use the cleaned query as the reference query in the email notification
This commit is contained in:
@@ -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
|
# Notify user if the AI response is satisfactory
|
||||||
if should_notify(original_query=scheduling_request, executed_query=cleaned_query, ai_response=ai_response):
|
if should_notify(original_query=scheduling_request, executed_query=cleaned_query, ai_response=ai_response):
|
||||||
if is_resend_enabled():
|
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:
|
else:
|
||||||
return raw_response
|
return raw_response
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user