From 7d13bf20ea745f97dd937f3675666e7889a31048 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 2 Apr 2026 15:55:15 -0500 Subject: [PATCH] Fix raw SQL references to renamed contacts table --- lib/microwaveprop_web/live/backfill_live.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/microwaveprop_web/live/backfill_live.ex b/lib/microwaveprop_web/live/backfill_live.ex index fee4ed72..7b43434c 100644 --- a/lib/microwaveprop_web/live/backfill_live.ex +++ b/lib/microwaveprop_web/live/backfill_live.ex @@ -191,16 +191,16 @@ defmodule MicrowavepropWeb.BackfillLive do %{rows: status_rows} = Repo.query!(""" SELECT - 'hrrr' as type, hrrr_status as status, count(*) as cnt FROM qsos GROUP BY hrrr_status + 'hrrr' as type, hrrr_status as status, count(*) as cnt FROM contacts GROUP BY hrrr_status UNION ALL SELECT - 'weather', weather_status, count(*) FROM qsos GROUP BY weather_status + 'weather', weather_status, count(*) FROM contacts GROUP BY weather_status UNION ALL SELECT - 'terrain', terrain_status, count(*) FROM qsos GROUP BY terrain_status + 'terrain', terrain_status, count(*) FROM contacts GROUP BY terrain_status UNION ALL SELECT - 'iemre', iemre_status, count(*) FROM qsos GROUP BY iemre_status + 'iemre', iemre_status, count(*) FROM contacts GROUP BY iemre_status ORDER BY 1, 2 """)