Skip to content

Commit

Permalink
Merge pull request #929 from akrherz/sigmets
Browse files Browse the repository at this point in the history
Drop raw text storage in sigmets
  • Loading branch information
akrherz authored Jul 8, 2024
2 parents 15e2467 + b28111c commit 10a6880
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.0"
rev: "v0.5.1"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ All notable changes to this library are documented in this file.

### API Changes

- Discontinue persisting raw test product into {mcd,mpd} table storage.
- Discontinue persisting text product into {mcd,mpd} table storage.
- Discontinue storage of text product into sigmets, use `product_id` instead.

### New Features

Expand Down
4 changes: 2 additions & 2 deletions src/pyiem/nws/products/sigmet.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ def sql(self, txn):
txn.execute(sql, args)
sql = (
f"INSERT into {table} (sigmet_type, label, issue, "
"expire, raw, geom) VALUES ('C',%s, %s, %s, %s, %s)"
"expire, product_id, geom) VALUES ('C',%s, %s, %s, %s, %s)"
)
args = (
sigmet.label,
self.valid,
sigmet.ets,
sigmet.raw,
self.get_product_id(),
sqlwkt,
)
txn.execute(sql, args)
Expand Down

0 comments on commit 10a6880

Please sign in to comment.