Skip to content

Commit

Permalink
Merge pull request #94 from maxplanck-ie/dev_wd
Browse files Browse the repository at this point in the history
inform deepseq under sambaUpdate
  • Loading branch information
WardDeb authored Oct 15, 2024
2 parents c14618f + 2e11d54 commit 382ce39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BRB/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def finishedEmail(config, msg):
# Inform deepseq too if we have a sambaUpdate:
if any([i[6] for i in msg]):
log.info("At least one sambaUpdate true in msg")
# Only inform deepseq if all workflows are succesfull (combat spam)
if [i[4] for i in msg].count('success') == len(msg):
# Only inform deepseq if no workflow failed
if [i[4] for i in msg].count('FAILED') == 0:
recipient = config.get("Email","deepSeq")
_html.add(div(
f"Post-processing is ready, Samba drive is updated for {[i[6] for i in msg].count(True)} project(s).",
Expand Down

0 comments on commit 382ce39

Please sign in to comment.