put newline after generate progress

This commit is contained in:
xenofem 2024-03-12 04:58:19 -04:00
parent e08daa37f4
commit 35f0c1fffe

View file

@ -993,7 +993,7 @@ def generate(args):
with open(viewer_dir / 'index.html', 'w') as f:
f.write(viewer_template.render(depth=3, work=work, title=work['title']))
print(f'\x1b[2K\r{idx+1}/{len(works)} works processed...', end='')
print(f'\x1b[2K\r{idx+1}/{len(works)} works processed...', end=('' if idx+1 < len(works) else '\n'))
def make_categorization(categorization, query, work_filter, work_style_cards=False):
categorization_dir = site_dir / categorization