From 67058d7bbd0baf245bb463e1412723b9fbc281f9 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 22 Nov 2014 17:40:26 +0100 Subject: no unpack in lambda --- imdb-lookup/imdbinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imdb-lookup/imdbinfo.py') diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 5a4c7fe..0917acf 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -148,7 +148,7 @@ def do_rating(args, imdb_ids): """Calculates a rating based on vote_average and vote_count""" with TMDBCache() as tmdbcache: infos = list(filter(lambda i: "vote_average" in i and "vote_count" in i, - map(lambda filename,imdb_id: tmdbcache.infos(imdb_id), imdb_ids))) + map(lambda fid: tmdbcache.infos(fid[1]), imdb_ids))) maxvotes = max(map(lambda i: i["vote_count"], infos)) for info in infos: f = math.sin(math.pi * ( info["vote_average"]/10.0 ) ) -- cgit v1.2.1