Skip to content

Commit

Permalink
More tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jan 8, 2024
1 parent 40c35df commit 4102383
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
5 changes: 3 additions & 2 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion src/backends/penta/PentabarfParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
28 changes: 25 additions & 3 deletions src/backends/pretalx/PretalxApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4102383

Please sign in to comment.