Browse Source

Correctly sync threads and post count in monitor after pruning.

Ralfp 12 years ago
parent
commit
484e82a3ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/management/commands/pruneforums.py

+ 1 - 1
misago/management/commands/pruneforums.py

@@ -39,6 +39,6 @@ class Command(BaseCommand):
             forum.sync()
             forum.sync()
             forum.save(force_update=True)
             forum.save(force_update=True)
         monitor = Monitor()
         monitor = Monitor()
-        monitor['threads'] = Post.objects.count()
+        monitor['threads'] = Thread.objects.count()
         monitor['posts'] = Post.objects.count()
         monitor['posts'] = Post.objects.count()
         self.stdout.write('Forums were pruned.\n')
         self.stdout.write('Forums were pruned.\n')