#NEWLINE# @ fragment . resethandler ( comments_list ) #NEWLINE# def reset_comments_list( post_id ) : #NEWLINE# #INDENT# page_size = COMMENTS_ON_PAGE #NEWLINE# pagination = Comment . query . filter_by ( post_id = post_id ) . paginate ( 1 , page_size ) #NEWLINE# for N in range ( pagination . pages ) : #NEWLINE# #INDENT# fragment . reset_url ( url_for ( 'comments_list' , post_id = post_id , page = ( post_id + 1 ) ) )