intercode icon indicating copy to clipboard operation
intercode copied to clipboard

A way to include whether game is masked or not in the per room report

Open vogon999 opened this issue 1 year ago • 2 comments

It would make sign making easier if the per room report could also show what the game's mask policy was. Thanks!

vogon999 avatar Feb 17 '24 02:02 vogon999

This will require building a system for exposing/selecting convention custom fields to be displayed on reports. For now, I've run the below query to solve the immediate need:

select 
m.name, e.title, 
(r.starts_at at time zone 'utc') at time zone 'EST' as start,
((r.starts_at + (INTERVAL '1 second' * e.length_seconds) )at time zone 'utc') at time zone 'EST' as end,
e.additional_info #>> '{"mask_policy"}'as mask_policy
from runs r 
left join events e on r.event_id = e.id
left join conventions c on c.id = e.convention_id
left join rooms_runs rr on rr.run_id = r.id
left join rooms m on rr.room_id = m.id
where c.name = 'Intercon V'
order by m.name, r.starts_at

dkapell avatar Feb 17 '24 03:02 dkapell

One other potential solution might be to implement that report via the CMS. I'll see if I can come up with a half-baked version of that over the weekend.

nbudin avatar Feb 17 '24 06:02 nbudin