diff --git a/URLNotesGrabberCORE/DataAccess.cs b/URLNotesGrabberCORE/DataAccess.cs index d71aaa3..fb049bf 100644 --- a/URLNotesGrabberCORE/DataAccess.cs +++ b/URLNotesGrabberCORE/DataAccess.cs @@ -1055,6 +1055,7 @@ namespace URLNotesGrabberCORE if (toDate.HasValue) command.Parameters.AddWithValue("@toDate", toDate.Value.ToString("yyyy-MM-dd HH:mm:ss")); + int rowCount = 0; using (SQLiteDataReader reader = command.ExecuteReader()) { while (reader.Read()) @@ -1114,6 +1115,8 @@ namespace URLNotesGrabberCORE throw; } + rowCount++; + // Exclude if postID is in the exclusion list if (_postIdsToExclude != null && _postIdsToExclude.Contains(postID)) continue; @@ -1122,6 +1125,11 @@ namespace URLNotesGrabberCORE posts.Add(post); } } + + int excluded = rowCount - posts.Count; + Console.WriteLine(excluded > 0 + ? $" COUNT: {rowCount} ({excluded} excluded, {posts.Count} to collect)" + : $" COUNT: {rowCount}"); } } catch (Exception ex)