Skip to content

Commit c6a2c93

Browse files
committed
show link to problem page when updating.
1 parent ef74e94 commit c6a2c93

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Lib/Updater.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,13 @@ async Task<Calendar> DownloadCalendar(IBrowsingContext context, Uri baseUri, int
165165
}
166166

167167
async Task<Problem> DownloadProblem(IBrowsingContext context, Uri baseUri, int year, int day) {
168-
var problemStatement = await context.OpenAsync(baseUri + $"{year}/day/{day}");
168+
var uri = baseUri + $"{year}/day/{day}";
169+
var color = Console.ForegroundColor;
170+
Console.ForegroundColor = ConsoleColor.Green;
171+
Console.WriteLine("Updating " + uri);
172+
Console.ForegroundColor = color;
173+
174+
var problemStatement = await context.OpenAsync(uri);
169175
var input = await context.GetService<IDocumentLoader>().FetchAsync(
170176
new DocumentRequest(new Url(baseUri + $"{year}/day/{day}/input"))).Task;
171177
return Problem.Parse(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy