예제 #1
0
 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('stats_download_counts')
     self.refresh('stats_update_counts')
예제 #2
0
 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')