Skip to content

Commit

Permalink
Merge pull request #4 from CapsuleHealth/DPLAT-169
Browse files Browse the repository at this point in the history
send summary only
  • Loading branch information
renyu-capsule authored Feb 8, 2022
2 parents 98a250b + d278279 commit c082610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hamb/handlers/email_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run(self, result, conf):

if level == "success" or not with_attachment:
json_msg = json.dumps(
result,
result["summary"],
indent=4,
default=json_serializer
)
Expand All @@ -61,7 +61,7 @@ def run(self, result, conf):

else:
json_msg = (
json.dumps(result, indent=4, default=json_serializer)
json.dumps(result["summary"], indent=4, default=json_serializer)
.replace(" ", " ")
.replace("\n", "<br>")
)
Expand Down

0 comments on commit c082610

Please sign in to comment.