Skip to content

Commit

Permalink
🐛 Fix freezing rain db queries
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Feb 9, 2025
1 parent 88608fe commit 396c1bb
Showing 1 changed file with 2 additions and 2 deletions.
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 396c1bb

Please sign in to comment.