Account for log numbers starting at 1 and not 0

This commit is contained in:
Robert Miles 2021-10-07 00:33:23 +00:00
parent 7a56543e72
commit 0d02453c3c
1 changed files with 1 additions and 0 deletions

1
app.py
View File

@ -84,6 +84,7 @@ def abstract_listing_generator(listing_file,header_file=None,header_text=None,li
log_num = total_line_count-line_count
else:
log_num = line_count
log_num += 1 # account for numbers starting at 1 and not 0
log_link = urllib.parse.quote(log_link,safe='/')
yield f"=> {log_link} {log_num} >> {log_name}\n"