Merge with upstream
authorhamidouk
Thu, 02 Feb 2012 11:07:20 +0100
changeset 500 10ec59f06198
parent 499 bd186f8156e1 (current diff)
parent 498 39a7b09be44f (diff)
child 502 d6371bde0c13
child 508 cebc62a93563
Merge with upstream
--- 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=[]):