main
Bob Mottram 2022-11-21 11:05:12 +00:00
parent 4ffee42529
commit 9d7e90a908
1 changed files with 96 additions and 93 deletions

View File

@ -3980,10 +3980,13 @@ def _create_box_items(base_dir: str,
'/' + index_box_name + '.index'
total_posts_count = 0
posts_added_to_timeline = 0
if os.path.isfile(index_filename):
if not os.path.isfile(index_filename):
return total_posts_count, posts_added_to_timeline
if first_post_id:
first_post_id = first_post_id.replace('--', '#')
first_post_id = first_post_id.replace('/', '#')
with open(index_filename, 'r', encoding='utf-8') as index_file:
posts_added_to_timeline = 0
while posts_added_to_timeline < items_per_page: