server/checkintegrity.py
branchstable
changeset 6112 913979c79244
parent 5999 eaf8219f8b7d
child 6127 747e423093fc
--- a/server/checkintegrity.py	Mon Aug 16 12:07:43 2010 +0200
+++ b/server/checkintegrity.py	Tue Aug 17 11:06:20 2010 +0200
@@ -99,8 +99,6 @@
         print 'no text index table'
         dbhelper.init_fti(cursor)
     repo.system_source.do_fti = True  # ensure full-text indexation is activated
-    if withpb:
-        pb = ProgressBar(len(etypes) + 1)
     if etypes is None:
         print 'Reindexing entities'
         etypes = set()
@@ -123,6 +121,7 @@
                                dbhelper.fti_table, dbhelper.fti_uid_attr,
                                ','.join("'%s'" % etype for etype in etypes)))
     if withpb:
+        pb = ProgressBar(len(etypes) + 1)
         pb.update()
     # reindex entities by generating rql queries which set all indexable
     # attribute to their current value