From d5b76c5c1263b2e65267a3600b210a03d7eb8b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sat, 21 May 2016 18:55:03 +0200 Subject: [PATCH] fix result list generation --- results.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/results.py b/results.py index 5a0ff0a..aae1aef 100644 --- a/results.py +++ b/results.py @@ -67,10 +67,9 @@ def add_other_cards(playable, player, results, game): def player_list(game): """Generate list of player strings""" - players = list() - for player in game.players: - player.user.first_name + " (%d cards)" % len(player.cards) - return players + return [player.user.first_name + " (%d cards)" % len(player.cards) + for player in game.players] + def add_no_game(results):