From c08f41dc46666adbd2168f8799072e46e5c5c975 Mon Sep 17 00:00:00 2001 From: Jonah Greenthal Date: Fri, 3 Nov 2023 16:52:38 -0500 Subject: [PATCH] ignore games without assigned packets --- src/main/resources/db/creation.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/db/creation.sql b/src/main/resources/db/creation.sql index 0d13031..cbd0f70 100644 --- a/src/main/resources/db/creation.sql +++ b/src/main/resources/db/creation.sql @@ -186,7 +186,9 @@ create or replace view packet_exposure as ( join non_conference_game g on gs.non_conference_game_id = g.id join booking b on g.booking_id = b.id join booking_status s on b.booking_status_code = s.code - where (s.tentative_packet_exposure = true or s.confirmed_packet_exposure = true) + where + (s.tentative_packet_exposure = true or s.confirmed_packet_exposure = true) and + g.assigned_packet_id is not null union all