truncate mods added on changelog

This commit is contained in:
iou1name 2019-06-03 19:17:49 -04:00
parent bfddb30a91
commit 1f0f6f0efa

View File

@ -221,6 +221,9 @@ def generate_summary():
change_log = "" change_log = ""
for date, items in changes.items(): for date, items in changes.items():
change_log += f"<i>{date}</i><ul>" change_log += f"<i>{date}</i><ul>"
if len(items) > 10:
change_log += f"<li>{len(items)} mods added</li>"
else:
for item in items: for item in items:
change_log += f"<li>{item}</li>" change_log += f"<li>{item}</li>"
change_log += "</ul>" change_log += "</ul>"