Skip to content

Commit 7731354

Browse files
authored
Specify API version (#131)
1 parent e3e8c01 commit 7731354

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
class Config:
88
event = "europython-2025"
99
event_dir_name = "ep2025"
10+
api_version = "v1"
11+
1012
project_root = Path(__file__).resolve().parents[1]
1113
raw_path = Path(f"{project_root}/data/raw/{event_dir_name}")
1214
public_path = Path(f"{project_root}/data/public/{event_dir_name}")

src/download.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
headers = {
2222
"Accept": "application/json, text/javascript",
2323
"Authorization": f"Token {Config.token()}",
24+
"Pretalx-Version": Config.api_version,
2425
}
2526

2627
base_url = f"https://pretalx.com/api/events/{Config.event}/"

0 commit comments

Comments
 (0)