From 4854eb17ac7b53b1d7d0c116e9046447a2371136 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 19 Jun 2015 21:10:26 -0500 Subject: [PATCH] storycraft: fix the line count in progress --- dr_botzo/storycraft/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dr_botzo/storycraft/models.py b/dr_botzo/storycraft/models.py index 013c31f..889aae4 100644 --- a/dr_botzo/storycraft/models.py +++ b/dr_botzo/storycraft/models.py @@ -45,7 +45,9 @@ class StorycraftGame(models.Model): """Get a terse summary of the game's progress.""" lines = self.get_lines() - num_lines = len(lines)-1 + num_lines = len(lines) + if self.status == StorycraftGame.STATUS_IN_PROGRESS: + num_lines -= 1 if num_lines == self.game_length - 1: last_line = ' LAST LINE'