diff --git a/server/GridBattle.Data.Importer/Program.cs b/server/GridBattle.Data.Importer/Program.cs index 0f5b682..880a57f 100644 --- a/server/GridBattle.Data.Importer/Program.cs +++ b/server/GridBattle.Data.Importer/Program.cs @@ -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( @@ -106,6 +106,7 @@ }) .ToList(), }; + Console.WriteLine($"Adding new Grid {newGrid}"); nytDbContext.Add(newGrid); count++; fromDate = fromDate.AddDays(1);