feat(collect): print candidate row count after the query
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
bde6506e01
commit
f40d824a8c
1 file changed
+8
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user