DataAccess: use INSERT OR IGNORE for Notes to handle duplicate entries; improve rate limit handling in API responses

This commit is contained in:
jim
2025-11-25 10:59:00 -06:00
parent 30f127cca4
commit e55d2b0e29
2 changed files with 122 additions and 16 deletions
+3 -2
View File
@@ -416,7 +416,8 @@ namespace URLNotesGrabberCORE
return "Success";
}
catch(Exception ex) { Console.WriteLine(ex.ToString()); }
catch(Exception ex) {
Console.WriteLine(ex.ToString()); }
return "UNKNOWN";
@@ -446,7 +447,7 @@ namespace URLNotesGrabberCORE
if (lease.IsAcquired)
{
Console.WriteLine("{0,32} - {1,15} - {2}", post.Item1, post.Item2, DateTimeOffset.FromUnixTimeSeconds(post.Item4).ToString());
Thread.Sleep(1000);
// Thread.Sleep(1000);
status = await GrabNotes(post);
}
else