|
|
@ -12,7 +12,7 @@ Input getInput(int day, string key, bool useTestInput, int testFetchIndex) { |
|
|
|
|
|
|
|
|
|
|
|
if (!std::filesystem::exists({localFilePath})) { |
|
|
|
if (!std::filesystem::exists({localFilePath})) { |
|
|
|
string dayStr = std::to_string(day); |
|
|
|
string dayStr = std::to_string(day); |
|
|
|
string url = "https://adventofcode.com/2022/day/" + dayStr; |
|
|
|
string url = "https://adventofcode.com/2023/day/" + dayStr; |
|
|
|
auto cookies = cpr::Cookies{{"session", key}}; |
|
|
|
auto cookies = cpr::Cookies{{"session", key}}; |
|
|
|
if (!useTestInput){ |
|
|
|
if (!useTestInput){ |
|
|
|
if (key.empty()){ |
|
|
|
if (key.empty()){ |
|
|
|