diff --git a/config/default.yaml b/config/default.yaml index d1d2a65..c219432 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -122,8 +122,9 @@ conference: name: "FOSDEM 2021" - # Schema may either be "json", "penta" or "pretalx". Remember to only - # specify one. + # You must specifiy a backend for your schedule. + # It may either be "json", "penta", or "pretalx". Remember to only + # specify *one*. # sample schedule configuration for using the json backend. schedule: diff --git a/src/backends/penta/PentabarfParser.ts b/src/backends/penta/PentabarfParser.ts index 874a3b1..4f7b324 100644 --- a/src/backends/penta/PentabarfParser.ts +++ b/src/backends/penta/PentabarfParser.ts @@ -221,7 +221,6 @@ export class PentabarfParser { } const roomQaEnabled = prefixConfig.qaAuditoriumRooms.find(p => auditorium.id.startsWith(p)) !== undefined; - for (const pEvent of arrayLike(pRoom.event)) { if (!pEvent) continue; diff --git a/src/backends/pretalx/PretalxApiClient.ts b/src/backends/pretalx/PretalxApiClient.ts index 1047f35..5933e91 100644 --- a/src/backends/pretalx/PretalxApiClient.ts +++ b/src/backends/pretalx/PretalxApiClient.ts @@ -59,11 +59,33 @@ export interface PretalxTalk { "resources": {resource: string, description: string}[] "created": string, "pending_state": string|null, - answers: unknown[], + answers: { + "id": number, + "question": { + "id": 1, + "question": { + "en": string, + }, + "required": false, + "target": "submission", + "options": { + id: string, + option: string, + }[], + }, + "answer": string, + "answer_file": string|null, + "submission": string, + "person": string|null, + "options": { + id: string, + option: string, + }[], + }[], "notes": string, "internal_notes": string, - "tags": string[] - "tag_ids": string[] + "tags": string[], + "tag_ids": string[], } export class PretalxApiClient {