EvansGmail / Ketamine-to-a-midget

1 stars 0 forks source link

grabTlPosts doesn't care whether comments are on the same page #12

Closed EvansGmail closed 9 years ago

EvansGmail commented 9 years ago

grabTlPosts threw a null reference exception on Line 312 when it shouldn't even be looking at a cached page; the comments appear on different pages in the same thread.

EvansGmail commented 9 years ago

The new LINQ query compares post number properly, but it was comparing them to see if post.All commentNumber == postNumber, when it should have been checking to see if post.Any have a commentNumber that == postNumber.

Fixed it up and it ran through 10 posts, reading only the appropriate one from the cache.