Skip to content

Commit

Permalink
remove leading zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Dec 2, 2024
1 parent e9a6e4e commit 8a18a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function downloadMissingData(solutions: string[]) {
const day = missingsolution.slice(3);
console.log('Starting download of ' + missingsolution);
await fetch(
`https://adventofcode.com/20${year}/day/${day}/input`,
`https://adventofcode.com/20${year}/day/${Number(day)}/input`,
{
headers: {
cookie: "session=" + Deno.env.get("AOC_SESSION"),
Expand Down

0 comments on commit 8a18a8b

Please sign in to comment.