DataAccess: use INSERT OR IGNORE for Notes to handle duplicate entries; improve rate limit handling in API responses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user