Update SQL logic, add project file, remove TLDB.7z

Added RERUN.sqbpro with SQL queries and DB settings.
Enhanced DataAccess.cs filtering for 'zomb-eh' and enabled SQL debug output.
Commented out Tumblr URL output in Program.cs for cleaner logs.
Deleted TLDB.7z binary archive.
This commit is contained in:
jim
2026-02-27 11:44:58 -06:00
parent bc9985a6f0
commit 15b484bdf8
4 changed files with 549 additions and 5 deletions
+6 -3
View File
@@ -342,7 +342,10 @@ namespace URLNotesGrabberCORE
"WHERE NotFound = 0 AND HasImage = 1 AND DownloadedFiles <> '.' " + Environment.NewLine;
if (withoutNotesOnly)
{
sql += " and HasNotesGathered = 0 " + Environment.NewLine;
sql += "OR ( Posts.blogname = 'zomb-eh' and [notesGatheredDateTime] > datetime('now', 'localtime', '-1 day') and ( ( postdate > '1/1/26' or ( HasNotesGathered = 1 and PostDate > '8/1/23' ) ) ) )" + Environment.NewLine;
}
// Filter by NotesGatheredDateTime if beforeDate is provided
if (beforeDate.HasValue)
@@ -356,9 +359,9 @@ namespace URLNotesGrabberCORE
"ORDER BY " + Environment.NewLine +
" notesgathereddatetime, Posts.PostDate desc, Posts.BlogName, Posts.PostID" + Environment.NewLine;
//Console.WriteLine(withoutNotesOnly);
//Console.WriteLine(sql);
//Console.Write(">"); //Console.ReadKey();
Console.WriteLine(withoutNotesOnly);
Console.WriteLine(sql);
Console.Write(">"); //Console.ReadKey();
//Thread.Sleep(250);
using (SQLiteCommand command = new SQLiteCommand(sql, connection))
+2 -2
View File
@@ -652,7 +652,7 @@ namespace URLNotesGrabberCORE
postsAdded++;
// Output hyperlink and post date
Console.WriteLine($"https://{reblog.reblogName}.tumblr.com/post/{reblog.postID} - {reblog.date}");
//Console.WriteLine($"https://{reblog.reblogName}.tumblr.com/post/{reblog.postID} - {reblog.date}");
}
}
reblog = new ReblogRecord();
@@ -773,7 +773,7 @@ namespace URLNotesGrabberCORE
postsAdded++;
// Output hyperlink and post date
Console.WriteLine($"https://{reblog.reblogName}.tumblr.com/post/{reblog.postID} - {reblog.date}");
//Console.WriteLine($"https://{reblog.reblogName}.tumblr.com/post/{reblog.postID} - {reblog.date}");
}
}
}
Binary file not shown.