Skip to content

Commit

Permalink
ignore games without assigned packets
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgreenthal committed Nov 3, 2023
1 parent 46ab400 commit c08f41d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/db/creation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c08f41d

Please sign in to comment.