Skip to content

Commit 433d83c

Browse files
committed
Fix submission_type and track
* Download: Expand these fields * Transform: Expect name in 'name > en' instead of 'en'
1 parent 16c2adf commit 433d83c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Build resource list dynamically based on exclusions
3131
resources = [
32-
"submissions?state=confirmed&expand=answers.question",
32+
"submissions?state=confirmed&expand=answers.question,submission_type,track",
3333
"speakers?questions=all",
3434
]
3535

src/models/pretalx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class PretalxSubmission(BaseModel):
7777
@classmethod
7878
def handle_localized(cls, v) -> str | None:
7979
if isinstance(v, dict):
80-
return v.get("en")
80+
return v["name"].get("en")
8181
return v
8282

8383
@field_validator("duration", mode="before")

0 commit comments

Comments
 (0)