Skip to content

Commit

Permalink
Download todays grid
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAman62 committed Aug 27, 2024
1 parent 0746e0e commit ac7f52b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/GridBattle.Data.Importer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

var httpClient = new HttpClient();
var count = 0;
while (fromDate < toDate)
while (fromDate <= toDate)
{
Console.WriteLine($"Fetching puzzle for {fromDate:yyyy-MM-dd}");
var response = await httpClient.GetFromJsonAsync<JsonObject>(
Expand All @@ -106,6 +106,7 @@
})
.ToList(),
};
Console.WriteLine($"Adding new Grid {newGrid}");
nytDbContext.Add(newGrid);
count++;
fromDate = fromDate.AddDays(1);
Expand Down

0 comments on commit ac7f52b

Please sign in to comment.