##// END OF EJS Templates
Optimized deleting old threads.
neko259 -
r251:4cfe57e4 default
parent child Browse files
Show More
@@ -139,7 +139,7 b' class PostManager(models.Manager):'
139 139 # must not be shown and be able for replying.
140 140
141 141 threads = self.get_threads()
142 thread_count = len(threads)
142 thread_count = threads.count()
143 143
144 144 if thread_count > settings.MAX_THREAD_COUNT:
145 145 num_threads_to_delete = thread_count - settings.MAX_THREAD_COUNT
General Comments 0
You need to be logged in to leave comments. Login now