Fix raw SQL references to renamed contacts table
This commit is contained in:
parent
da75977a55
commit
7d13bf20ea
1 changed files with 4 additions and 4 deletions
|
|
@ -191,16 +191,16 @@ defmodule MicrowavepropWeb.BackfillLive do
|
||||||
%{rows: status_rows} =
|
%{rows: status_rows} =
|
||||||
Repo.query!("""
|
Repo.query!("""
|
||||||
SELECT
|
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
|
UNION ALL
|
||||||
SELECT
|
SELECT
|
||||||
'weather', weather_status, count(*) FROM qsos GROUP BY weather_status
|
'weather', weather_status, count(*) FROM contacts GROUP BY weather_status
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT
|
SELECT
|
||||||
'terrain', terrain_status, count(*) FROM qsos GROUP BY terrain_status
|
'terrain', terrain_status, count(*) FROM contacts GROUP BY terrain_status
|
||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT
|
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
|
ORDER BY 1, 2
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue