Skip to content

Commit

Permalink
fix: table name
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Nov 12, 2023
1 parent 994ebde commit cdb86b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ingestors/uscrn_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def process_file(icursor, ocursor, year, filename, size, reprocess):
)
if reprocess and not df.empty:
ocursor.execute(
f"DELETE from uscrn_t{year} WHERE station = %s",
f"DELETE from t{year} WHERE station = %s",
(df.iloc[0]["WBANNO"],),
)
LOG.info(
Expand Down Expand Up @@ -160,7 +160,7 @@ def process_file(icursor, ocursor, year, filename, size, reprocess):
200,
)
ob.save(icursor, skip_current=reprocess)
table = f"uscrn_t{valid.year}"
table = f"t{valid.year}"
if not reprocess:
ocursor.execute(
f"DELETE from {table} WHERE station = %s and valid = %s",
Expand Down

0 comments on commit cdb86b5

Please sign in to comment.