Skip to content

Commit acb2899

Browse files
committed
Use '?expand=...' to request nested resources
1 parent 681c167 commit acb2899

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/download.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@
2525
}
2626

2727
base_url = f"https://pretalx.com/api/events/{Config.event}/"
28-
schedule_url = base_url + "schedules/latest/"
28+
schedule_url = (
29+
base_url
30+
+ "schedules/latest?expand="
31+
+ "slots,slots.submission,slots.submission.submission_type,slots.submission.track,slots.room"
32+
)
2933

3034
# Build resource list dynamically based on exclusions
3135
resources = [
32-
"submissions?state=confirmed",
33-
"speakers",
36+
"submissions?state=confirmed&expand=answers.question,submission_type,track,slots.room",
37+
"speakers?expand=answers.question",
3438
]
3539

3640
if "youtube" not in exclude:

0 commit comments

Comments
 (0)