Browse Source

Forums pruning cron fixed.

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

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

@@ -17,7 +17,7 @@ class Command(BaseCommand):
                     thread.delete()
                     deleted += 1
             if forum.prune_last:
-                for thread in forum.thread_set.filter(weight=0).filter(start__lte=timezone.now() - timedelta(days=forum.prune_last)):
+                for thread in forum.thread_set.filter(weight=0).filter(last__lte=timezone.now() - timedelta(days=forum.prune_last)):
                     thread.delete()
                     deleted += 1
             if deleted: