Compare commits
2
Commits
ed84d6fec0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c09c180f1a | ||
|
|
a3a54a12fe |
@@ -1366,8 +1366,7 @@ namespace URLNotesGrabberCORE
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Least recently refreshed first; within that, blogs that have left a note before those
|
// Only blogs that have left a note; least recently refreshed first, then earliest first note
|
||||||
// that never have, earliest first note first
|
|
||||||
string dueFilter = ignoreCooldown ? string.Empty : @"
|
string dueFilter = ignoreCooldown ? string.Empty : @"
|
||||||
AND (
|
AND (
|
||||||
COALESCE(B.LikesPulled, 0) = 0
|
COALESCE(B.LikesPulled, 0) = 0
|
||||||
@@ -1379,12 +1378,11 @@ namespace URLNotesGrabberCORE
|
|||||||
COALESCE(B.LikesCursor, 0),
|
COALESCE(B.LikesCursor, 0),
|
||||||
COALESCE(B.LikesNewestTimestamp, 0)
|
COALESCE(B.LikesNewestTimestamp, 0)
|
||||||
FROM Blogs B
|
FROM Blogs B
|
||||||
LEFT JOIN (SELECT N.NoteBlogId, MIN(N.TimeStamp) AS FirstNoteTs
|
INNER JOIN (SELECT N.NoteBlogId, MIN(N.TimeStamp) AS FirstNoteTs
|
||||||
FROM Notes N" + WhereIsActive("Notes", "N", DBPath) + @"
|
FROM Notes N" + WhereIsActive("Notes", "N", DBPath) + @"
|
||||||
GROUP BY N.NoteBlogId) F ON F.NoteBlogId = B.BlogId
|
GROUP BY N.NoteBlogId) F ON F.NoteBlogId = B.BlogId
|
||||||
WHERE B.IsActive = 1" + dueFilter + @"
|
WHERE B.IsActive = 1" + dueFilter + @"
|
||||||
ORDER BY COALESCE(B.LikesLastRefreshed, 0),
|
ORDER BY COALESCE(B.LikesLastRefreshed, 0),
|
||||||
F.FirstNoteTs IS NULL,
|
|
||||||
F.FirstNoteTs,
|
F.FirstNoteTs,
|
||||||
B.BlogName;";
|
B.BlogName;";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user