Storycraft: display the number of logged lines when doing an in progress status

This commit is contained in:
Brian S. Stephan 2011-01-09 12:30:55 -06:00
parent 7ae2a75732
commit 487ca2e862
1 changed files with 3 additions and 3 deletions

View File

@ -505,9 +505,9 @@ class Storycraft(Module):
if game.status == 'COMPLETED' and game.end_time:
status_str = status_str + ' ({0:s})'.format(game.end_time)
elif game.status == 'IN PROGRESS':
line = self._get_lines_for_game(game.id)[0]
player = self._get_player_by_id(line.player_id)
status_str = status_str + ' (next is {0:s})'.format(player.nick)
lines = self._get_lines_for_game(game.id)
player = self._get_player_by_id(lines[0].player_id)
status_str = status_str + ' ({0:d} lines, next is {1:s})'.format(len(lines)-1, player.nick)
# get players in game
player_names = []