# HG changeset patch # User hamidouk # Date 1328177240 -3600 # Node ID 10ec59f061981e71e3118c21e0f9f4455b12288c # Parent bd186f8156e18e804d8e404234a4449a09f0e77a# Parent 39a7b09be44f11618fcb5a12c13d69b54305c9e6 Merge with upstream diff -r bd186f8156e1 -r 10ec59f06198 src/ldt/ldt/ldt_utils/stat.py --- a/src/ldt/ldt/ldt_utils/stat.py Thu Feb 02 11:06:49 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/stat.py Thu Feb 02 11:07:20 2012 +0100 @@ -41,18 +41,16 @@ def update_stat_project(project, contents_only=[]): - if project.state != 2: - return None - if contents_only: - contents = contents_only - else: - contents = project.contents.all() + if contents_only: + contents = contents_only + else: + contents = project.contents.all() - for c in contents: - update_stat_content(c) + for c in contents: + update_stat_content(c) - return True + return True def add_annotation_to_stat(content, begin, end, polemics=[]):