Storycraft: display the number of logged lines when doing an in progress status
This commit is contained in:
parent
7ae2a75732
commit
487ca2e862
@ -505,9 +505,9 @@ class Storycraft(Module):
|
|||||||
if game.status == 'COMPLETED' and game.end_time:
|
if game.status == 'COMPLETED' and game.end_time:
|
||||||
status_str = status_str + ' ({0:s})'.format(game.end_time)
|
status_str = status_str + ' ({0:s})'.format(game.end_time)
|
||||||
elif game.status == 'IN PROGRESS':
|
elif game.status == 'IN PROGRESS':
|
||||||
line = self._get_lines_for_game(game.id)[0]
|
lines = self._get_lines_for_game(game.id)
|
||||||
player = self._get_player_by_id(line.player_id)
|
player = self._get_player_by_id(lines[0].player_id)
|
||||||
status_str = status_str + ' (next is {0:s})'.format(player.nick)
|
status_str = status_str + ' ({0:d} lines, next is {1:s})'.format(len(lines)-1, player.nick)
|
||||||
|
|
||||||
# get players in game
|
# get players in game
|
||||||
player_names = []
|
player_names = []
|
||||||
|
Loading…
Reference in New Issue
Block a user