storycraft: fix the line count in progress

This commit is contained in:
Brian S. Stephan 2015-06-19 21:10:26 -05:00
parent 1c88aa1189
commit 4854eb17ac
1 changed files with 3 additions and 1 deletions

View File

@ -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'