Skip to content

Commit

Permalink
Merge pull request #962 from akrherz/sps_data
Browse files Browse the repository at this point in the history
🔥 Discontinue raw SPS text storage in database
  • Loading branch information
akrherz authored Sep 23, 2024
2 parents 31f417f + 78590ba commit 71e75de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ All notable changes to this library are documented in this file.

### API Changes

- Discontinue raw SPS product text within the database.

### New Features

- Add `allowed_as_list` option to `iemapp()` helper to stop lists.
Expand Down
5 changes: 2 additions & 3 deletions src/pyiem/nws/products/sps.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,13 @@ def _sql_segment(prod, txn, seg):

empty = "POLYGON EMPTY"
txn.execute(
"INSERT into sps(product_id, product, pil, wfo, issue, expire, "
"INSERT into sps(product_id, pil, wfo, issue, expire, "
"geom, ugcs, landspout, waterspout, max_hail_size, max_wind_gust, "
f"tml_valid, tml_direction, tml_sknt, {tml_column}, segmentnum) "
"VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, "
"VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, "
"%s, %s, %s)",
(
prod.get_product_id(),
prod.unixtext,
prod.afos,
prod.source[1:],
prod.valid,
Expand Down

0 comments on commit 71e75de

Please sign in to comment.