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

Undo relay #254

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ repos:
types: [python]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.4"
rev: "v0.6.7"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: '2.2.3'
rev: '2.2.4'
hooks:
- id: pyproject-fmt

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
Loading