Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const eventCategories: EventCategory[] = [
filterBitFieldIndex: 5,
},
{
pretalxTrack: 'Visual Art',
pretalxTrack: 'Visual Art (displayed)',
slug: 'visual-art',
label: 'Visual Art',
icon: <FaPaintBrush />,
Expand Down
5 changes: 4 additions & 1 deletion src/lib/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ export async function fetchEventSessions(): Promise<EventSession[]> {
const events = schedule.schedule.conference.days
// Map over each day
.flatMap((day: PretalxScheduleDay): EventSession[] =>
// Map over each room in the day
// Map over each room in the day, excluding the "gallery" day
day.index === "gallery"
? []
:
Object.values(day.rooms).flatMap((roomEvents) =>
roomEvents.map(constructEventSessionFromPretalxEvent),
),
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pretalx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type PretalxScheduleTrack = {
};

export type PretalxScheduleDay = {
index: number;
index: number | string; // Use string for "gallery" day
day_start: string;
day_end: string;
rooms: Record<string, PretalxScheduleEvent[]>;
Expand Down Expand Up @@ -103,6 +103,6 @@ export const pretalxApiRequest = (path: string): Promise<Response> => {

export const fetchPretalxSchedule = (): Promise<PretalxScheduleJson> => {
return pretalxHttpRequest<PretalxScheduleJson>(
`${process.env.PRETALX_EVENT_SLUG}/schedule/export/schedule.json`,
`${process.env.PRETALX_EVENT_SLUG}/p/broadcast-tools/wsaf_schedule.json`,
);
};