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 para correção de variável no módulo de envio de email #128

Merged
merged 1 commit into from
Aug 29, 2024
Merged
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
4 changes: 2 additions & 2 deletions src/notification/email_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def generate_email_content(self) -> str:

for group, search_results in search["result"].items():

if not results:
if not search_results:
blocks.append(f"<p>{self.report_config.no_results_found_text}.</p>")
else:
if not self.report_config.hide_filters:
Expand All @@ -112,7 +112,7 @@ def generate_email_content(self) -> str:
blocks.append(f"**Grupo: {group}**")
blocks.append("\n\n")

for term, term_results in results.items():
for term, term_results in search_results.items():
blocks.append("\n")
if not self.report_config.hide_filters:
blocks.append(f"* # Resultados para: {term}")
Expand Down
Loading