def index(self): updates = UpdateCount.objects.values_list('id', flat=True) tasks.index_update_counts(list(updates)) downloads = DownloadCount.objects.values_list('id', flat=True) tasks.index_download_counts(list(downloads)) user_counts = ThemeUserCount.objects.values_list('id', flat=True) tasks.index_theme_user_counts(list(user_counts)) self.refresh('stats')
def index(self): updates = UpdateCount.objects.values_list('id', flat=True) tasks.index_update_counts(list(updates)) downloads = DownloadCount.objects.values_list('id', flat=True) tasks.index_download_counts(list(downloads)) user_counts = ThemeUserCount.objects.values_list('id', flat=True) tasks.index_theme_user_counts(list(user_counts)) self.refresh('update_counts')
def index(self): updates = UpdateCount.objects.values_list('id', flat=True) tasks.index_update_counts(list(updates)) downloads = DownloadCount.objects.values_list('id', flat=True) tasks.index_download_counts(list(downloads)) self.refresh('update_counts')