We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e56a02 commit 4d12bd9Copy full SHA for 4d12bd9
api/src/routes/ical.ts
@@ -54,8 +54,9 @@ export function icalRoute(pool: Pool): Handler {
54
const ctfs = await getCtfs();
55
56
for (const ctf of ctfs) {
57
+ const ctftime_id = ctf.ctftime_url?.replace(/\/$/, "").split("/").at(-1);
58
cal.createEvent({
- id: `${ctf.id}@${config.pad.domain}`,
59
+ id: `${ctf.id}:${ctftime_id || "no-ctftime"}@${config.pad.domain || "ctfnote"}`,
60
start: ctf.start_time,
61
end: ctf.end_time,
62
description: ctf.description,
0 commit comments