Skip to content

Commit 8a18a8b

Browse files
committed
remove leading zero
1 parent e9a6e4e commit 8a18a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function downloadMissingData(solutions: string[]) {
1010
const day = missingsolution.slice(3);
1111
console.log('Starting download of ' + missingsolution);
1212
await fetch(
13-
`https://adventofcode.com/20${year}/day/${day}/input`,
13+
`https://adventofcode.com/20${year}/day/${Number(day)}/input`,
1414
{
1515
headers: {
1616
cookie: "session=" + Deno.env.get("AOC_SESSION"),

0 commit comments

Comments
 (0)