diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:40:26 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2014-11-22 17:40:26 +0100 |
commit | 67058d7bbd0baf245bb463e1412723b9fbc281f9 (patch) | |
tree | 333a879dab15fc6270bf0a11fdbff8510cf47d6f | |
parent | 4fb667cd7d697a87664229ed36a04a09e0bae1a1 (diff) | |
download | scripts-67058d7bbd0baf245bb463e1412723b9fbc281f9.tar.gz scripts-67058d7bbd0baf245bb463e1412723b9fbc281f9.zip |
no unpack in lambda
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) ) |