Finding the first post in the timeline

main
Bob Mottram 2022-11-20 17:41:49 +00:00
parent f74cd56dc6
commit 047e371754
1 changed files with 2 additions and 1 deletions

View File

@ -4028,7 +4028,6 @@ def _create_box_indexed(recent_posts_cache: {},
if first_post_id:
first_post_id = first_post_id.replace('--', '#')
first_post_id = first_post_id.replace('/', '#')
print('DEBUG: first_post_id: ' + first_post_id)
with open(index_filename, 'r', encoding='utf-8') as index_file:
posts_added_to_timeline = 0
while posts_added_to_timeline < items_per_page:
@ -4044,6 +4043,8 @@ def _create_box_indexed(recent_posts_cache: {},
total_posts_count = \
int((page_number - 1) * items_per_page)
continue
if total_posts_count == 0:
continue
# Has this post passed through the newswire voting stage?
if not _passed_newswire_voting(newswire_votes_threshold,