Skip to content

Commit 12dc69d

Browse files
authored
Badge 2025 Part 2 (#4410)
1 parent 37752f8 commit 12dc69d

File tree

5 files changed

+646
-328
lines changed

5 files changed

+646
-328
lines changed

badge-service/.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 21.7.3

badge-service/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const EMPTY_BADGES_COUNT = {
1616

1717
const getAllQuestions = async () => {
1818
const request = await fetch(
19-
"https://tickets.pycon.it/api/v1/organizers/python-italia/events/pyconit2024/questions/",
19+
"https://tickets.pycon.it/api/v1/organizers/python-italia/events/pyconit2025/questions/",
2020
{
2121
headers: {
2222
Authorization: `Token ${process.env.PRETIX_API_TOKEN}`,
@@ -46,7 +46,7 @@ const getConferenceRoleForTicketData = async (orderPosition) => {
4646
}`,
4747
variables: {
4848
ticketData: JSON.stringify(orderPosition),
49-
conferenceCode: "pycon2024",
49+
conferenceCode: "pycon2025",
5050
},
5151
}),
5252
});
@@ -56,7 +56,7 @@ const getConferenceRoleForTicketData = async (orderPosition) => {
5656

5757
const getAllOrderPositions = async () => {
5858
let next =
59-
"https://tickets.pycon.it/api/v1/organizers/python-italia/events/pyconit2024/checkinlists/44/positions/";
59+
"https://tickets.pycon.it/api/v1/organizers/python-italia/events/pyconit2025/checkinlists/59/positions/";
6060
const positions = [];
6161
while (next) {
6262
const request = await fetch(next, {
@@ -210,7 +210,7 @@ const createEmptyBadgeOrderPositions = () => {
210210
width: "23cm",
211211
height: "33cm",
212212
});
213-
archive.append(buffer, { name: filename });
213+
archive.append(Buffer.from(buffer), { name: filename });
214214
}
215215

216216
counter = counter + 1;

badge-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
13-
"archiver": "^5.3.1",
13+
"archiver": "^7.0.1",
1414
"dotenv": "^16.0.3",
1515
"lodash.chunk": "^4.2.0",
16-
"puppeteer": "^20.1.1"
16+
"puppeteer": "^24.8.0"
1717
}
1818
}

0 commit comments

Comments
 (0)