Compare commits
2
Commits
bde6506e01
...
ca99586176
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca99586176 | ||
|
|
f40d824a8c |
@@ -1055,6 +1055,7 @@ namespace URLNotesGrabberCORE
|
|||||||
if (toDate.HasValue)
|
if (toDate.HasValue)
|
||||||
command.Parameters.AddWithValue("@toDate", toDate.Value.ToString("yyyy-MM-dd HH:mm:ss"));
|
command.Parameters.AddWithValue("@toDate", toDate.Value.ToString("yyyy-MM-dd HH:mm:ss"));
|
||||||
|
|
||||||
|
int rowCount = 0;
|
||||||
using (SQLiteDataReader reader = command.ExecuteReader())
|
using (SQLiteDataReader reader = command.ExecuteReader())
|
||||||
{
|
{
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
@@ -1114,6 +1115,8 @@ namespace URLNotesGrabberCORE
|
|||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rowCount++;
|
||||||
|
|
||||||
// Exclude if postID is in the exclusion list
|
// Exclude if postID is in the exclusion list
|
||||||
if (_postIdsToExclude != null && _postIdsToExclude.Contains(postID))
|
if (_postIdsToExclude != null && _postIdsToExclude.Contains(postID))
|
||||||
continue;
|
continue;
|
||||||
@@ -1122,6 +1125,11 @@ namespace URLNotesGrabberCORE
|
|||||||
posts.Add(post);
|
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)
|
catch (Exception ex)
|
||||||
|
|||||||
Reference in new issue
Block a user