# HG changeset patch # User Marcin Kuzminski # Date 2010-11-29 01:34:19 # Node ID 9fec2207f91c4e70e3ed8ddcff32bcb3ed226397 # Parent 873611d6ff714057ccd0a1c697f864a73be6c831 removed binary files from trending sources diff --git a/rhodecode/lib/celerylib/tasks.py b/rhodecode/lib/celerylib/tasks.py --- a/rhodecode/lib/celerylib/tasks.py +++ b/rhodecode/lib/celerylib/tasks.py @@ -350,7 +350,7 @@ def __get_codes_stats(repo_name): ext = f.extension key = LANGUAGES_EXTENSIONS_MAP.get(ext, ext) key = key or ext - if ext in LANGUAGES_EXTENSIONS_MAP.keys(): + if ext in LANGUAGES_EXTENSIONS_MAP.keys() and not f.is_binary: if code_stats.has_key(key): code_stats[key] += 1 else: