diff --git a/src/build.py b/src/build.py
index 1c40d42..456f4bf 100644
--- a/src/build.py
+++ b/src/build.py
@@ -46,12 +46,13 @@ def build_contents_page(articles, config):
content += "\n\n"
# Write the articles in turn order
content += "
\n
\n"
- latest_turn = max([article.turn for article in articles if article.player is not None])
+ turn_numbers = [article.turn for article in articles if article.player is not None]
+ first_turn, last_turn = min(turn_numbers), max(turn_numbers)
turn_order = sorted(
articles,
key=lambda a: (a.turn, utils.titlesort(a.title)))
check_off = list(turn_order)
- for turn_num in range(0, latest_turn + 1):
+ for turn_num in range(first_turn, last_turn + 1):
content += "Turn {0}
\n".format(turn_num)
for article in turn_order:
if article.turn == turn_num: