Skip to content

Commit

Permalink
Merge pull request #1100 from akrherz/250207-2
Browse files Browse the repository at this point in the history
Omnibus
  • Loading branch information
akrherz authored Feb 9, 2025
2 parents 17b693c + 396c1bb commit 3aac26d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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/pre-commit/mirrors-eslint
rev: 'v9.19.0'
rev: 'v9.20.0'
hooks:
- id: eslint
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
4 changes: 2 additions & 2 deletions pylib/iemweb/autoplot/scripts200/p207.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def load_data(ctx: dict, basets: datetime, endts: datetime):
for dt in pd.date_range(basets.date(), endts.date())
if basets < datetime(dt.year, dt.month, dt.day, 7) < endts
]
if ctx["coop"] == "yes" or ctx["v"] == "ice":
if ctx["coop"] == "yes" and ctx["v"] != "ice":
with get_sqlalchemy_conn("iem") as conn:
coopdf: gpd.GeoDataFrame = gpd.read_postgis(
sql_helper(
Expand Down Expand Up @@ -265,7 +265,7 @@ def load_data(ctx: dict, basets: datetime, endts: datetime):
coopdf["plotme"] = True
coopdf["source"] = "COOP"
df = pd.concat([df, coopdf], ignore_index=True, sort=False)
if ctx["cocorahs"] == "yes":
if ctx["cocorahs"] == "yes" and ctx["v"] != "ice":
with get_sqlalchemy_conn("coop") as conn:
cocodf: gpd.GeoDataFrame = gpd.read_postgis(
sql_helper(
Expand Down

0 comments on commit 3aac26d

Please sign in to comment.