storycraft: fix the line count in progress
This commit is contained in:
parent
1c88aa1189
commit
4854eb17ac
|
@ -45,7 +45,9 @@ class StorycraftGame(models.Model):
|
||||||
"""Get a terse summary of the game's progress."""
|
"""Get a terse summary of the game's progress."""
|
||||||
|
|
||||||
lines = self.get_lines()
|
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:
|
if num_lines == self.game_length - 1:
|
||||||
last_line = ' LAST LINE'
|
last_line = ' LAST LINE'
|
||||||
|
|
Loading…
Reference in New Issue