Skip to content
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
6 changes: 3 additions & 3 deletions src/app/service/rule_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def save_rule(self, newRule: Rule, admin_email: str, token: str):
[f"- {cond}" for cond in (getattr(newRule, "conditions", []) or [])]
)

subject = f"Deleted Application Rule: {newRule.title}"
subject = f"New Application Rule: {newRule.title}"
body = (
f"The following application rule has been deleted:<br><br>"
f"The following application rule has been created:<br><br>"
f"<b>Title:</b> {newRule.title}<br>"
f"<b>Description:</b> {newRule.description}<br>"
f"<b>Conditions:</b><br>{conditions_formatted.replace(chr(10), '<br>') if conditions_formatted else 'None'}<br>"
Expand Down Expand Up @@ -137,7 +137,7 @@ def update_rule_by_id(

subject = f"Updated Application Rule: {updated_rule.title}"
body = (
f"The application rule '<b>{updated_rule.title}</b>' has been updated.<br><br>"
f"The application rule '<b>{old_rule.get('title')}</b>' has been updated.<br><br>"
f"<b>--- OLD RULE ---</b><br>"
f"<b>Title:</b> {old_rule.get('title')}<br>"
f"<b>Description:</b> {old_rule.get('description')}<br>"
Expand Down