diff --git a/URLNotesGrabberCORE/DataAccess.cs b/URLNotesGrabberCORE/DataAccess.cs index acd8d13..ed1ffc4 100644 --- a/URLNotesGrabberCORE/DataAccess.cs +++ b/URLNotesGrabberCORE/DataAccess.cs @@ -1040,7 +1040,8 @@ namespace URLNotesGrabberCORE COALESCE(LikesCursor, 0), COALESCE(LikesNewestTimestamp, 0) FROM Blogs - WHERE BlogName = @blog"; + WHERE BlogName = @blog + AND IsActive = 1"; } else if (ignoreCooldown) { @@ -1053,6 +1054,7 @@ namespace URLNotesGrabberCORE INNER JOIN Notes N ON N.NoteBlogName = B.BlogName WHERE N.TimeStamp >= 1535778000 AND N.rootBlogName = B.BlogName + AND B.IsActive = 1 GROUP BY B.BlogName ORDER BY MIN(N.Timestamp);"; } @@ -1067,6 +1069,7 @@ namespace URLNotesGrabberCORE INNER JOIN Notes N ON N.NoteBlogName = B.BlogName WHERE N.TimeStamp >= 1535778000 AND N.rootBlogName = B.BlogName + AND B.IsActive = 1 AND ( B.LikesPulled = 0 OR COALESCE(B.LikesLastRefreshed, 0) @@ -2211,7 +2214,7 @@ namespace URLNotesGrabberCORE using var connection = new SQLiteConnection("Data Source=" + DBPath); connection.Open(); - using var cmd = new SQLiteCommand("SELECT BlogName, TTFolderPath FROM Blogs", connection); + using var cmd = new SQLiteCommand("SELECT BlogName, TTFolderPath FROM Blogs WHERE IsActive = 1", connection); using var reader = cmd.ExecuteReader(); while (reader.Read()) {