Skip to content

Commit e00ead4

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

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
@@ -28,7 +28,7 @@
2828

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

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)