|
@@ -28,8 +28,6 @@ class Command(BaseCommand):
|
|
show_progress(self, synchronized_count, users_to_sync)
|
|
show_progress(self, synchronized_count, users_to_sync)
|
|
start_time = time.time()
|
|
start_time = time.time()
|
|
for user in batch_update(get_user_model().objects.all()):
|
|
for user in batch_update(get_user_model().objects.all()):
|
|
- if user.pk == 1:
|
|
|
|
- print user.username
|
|
|
|
user.threads = user.thread_set.filter(is_unapproved=False).count()
|
|
user.threads = user.thread_set.filter(is_unapproved=False).count()
|
|
user.posts = user.post_set.filter(is_unapproved=False).count()
|
|
user.posts = user.post_set.filter(is_unapproved=False).count()
|
|
user.followers = user.followed_by.count()
|
|
user.followers = user.followed_by.count()
|