mirror of https://gitlab.com/bashrc2/epicyon
Finding the first post in the timeline
parent
f74cd56dc6
commit
047e371754
3
posts.py
3
posts.py
|
@ -4028,7 +4028,6 @@ def _create_box_indexed(recent_posts_cache: {},
|
||||||
if first_post_id:
|
if first_post_id:
|
||||||
first_post_id = first_post_id.replace('--', '#')
|
first_post_id = first_post_id.replace('--', '#')
|
||||||
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:
|
with open(index_filename, 'r', encoding='utf-8') as index_file:
|
||||||
posts_added_to_timeline = 0
|
posts_added_to_timeline = 0
|
||||||
while posts_added_to_timeline < items_per_page:
|
while posts_added_to_timeline < items_per_page:
|
||||||
|
@ -4044,6 +4043,8 @@ def _create_box_indexed(recent_posts_cache: {},
|
||||||
total_posts_count = \
|
total_posts_count = \
|
||||||
int((page_number - 1) * items_per_page)
|
int((page_number - 1) * items_per_page)
|
||||||
continue
|
continue
|
||||||
|
if total_posts_count == 0:
|
||||||
|
continue
|
||||||
|
|
||||||
# Has this post passed through the newswire voting stage?
|
# Has this post passed through the newswire voting stage?
|
||||||
if not _passed_newswire_voting(newswire_votes_threshold,
|
if not _passed_newswire_voting(newswire_votes_threshold,
|
||||||
|
|
Loading…
Reference in New Issue