Skip to content

Commit

Permalink
🔥 Undo product relay
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Sep 24, 2024
1 parent 9824948 commit 487761c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion pqact.d/pqact_afos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ WMO /p(SCN|ADM|RER|PNS)
PIPE pywwa-spammer
WMO ^NOXX
PIPE pywwa-spammer
WMO /p(ADANCF|DNMWNO|ADASDM|AFDMPX)
WMO /p(ADANCF|DNMWNO|ADASDM)
PIPE pywwa-spammer

###
Expand Down
4 changes: 0 additions & 4 deletions src/pywwa/workflows/spammer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ def real_process(data) -> product.TextProduct:
subject = prod.afos
if prod.afos[:3] == "ADM":
subject = f"ADMIN NOTICE {prod.afos[3:]}"
elif prod.afos == "AFDMPX":
subject = f"AFD {prod.source}"
del msg["To"]
msg["To"] = "[email protected]"
elif prod.afos[:3] == "PNS" and prod.afos != "PNSWSH":
if prod.unixtext.upper().find("DAMAGE SURVEY") == -1:
return None
Expand Down

0 comments on commit 487761c

Please sign in to comment.