Merge branch 'claude/collect-query-count-output-c430c8' into master
This commit is contained in:
commit
ca99586176
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