mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
4ffee42529
commit
9d7e90a908
5
posts.py
5
posts.py
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue