Beispiel #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))
     user_counts = ThemeUserCount.objects.values_list('id', flat=True)
     tasks.index_theme_user_counts(list(user_counts))
     self.refresh('stats')
Beispiel #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('update_counts')
Beispiel #3
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('update_counts')