Fix Hashtag.get_all_posts() missing one post in certain cases
When a hashtag query returned only the 9 top posts, get_all_posts() yielded only 8 instead of all 9 posts. Closes #853.
This commit is contained in:
		| @@ -1359,9 +1359,13 @@ class Hashtag: | ||||
|         next_other = next(other_posts, None) | ||||
|         while next_top is not None or next_other is not None: | ||||
|             if next_other is None: | ||||
|                 assert next_top is not None | ||||
|                 yield next_top | ||||
|                 yield from sorted_top_posts | ||||
|                 break | ||||
|             if next_top is None: | ||||
|                 assert next_other is not None | ||||
|                 yield next_other | ||||
|                 yield from other_posts | ||||
|                 break | ||||
|             if next_top == next_other: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Graf
					Alexander Graf