Пример #1
0
    def handle(self, *args, **options):
        sound_qs = Sound.objects.select_related("pack", "user", "license") \
                                .filter(is_index_dirty=True,
                                        moderation_state='OK',
                                        processing_state='OK')

        add_all_sounds_to_solr(sound_qs, mark_index_clean=True)
    def handle(self, *args, **options):
        sound_qs = Sound.objects.select_related("pack", "user", "license") \
                                .filter(is_index_dirty=True,
                                        moderation_state='OK',
                                        processing_state='OK')

        add_all_sounds_to_solr(sound_qs, mark_index_clean=True)
Пример #3
0
 def handle(self, *args, **options):
     sound_qs = Sound.objects.select_related("pack", "user", "license") \
                             .filter(processing_state="OK", moderation_state="OK")
     add_all_sounds_to_solr(sound_qs)
Пример #4
0
 def read(self, request):
     sound_qs = Sound.objects.select_related("pack", "user", "license") \
                             .filter(processing_state="OK", moderation_state="OK")
     add_all_sounds_to_solr(sound_qs)
     return rc.ALL_OK
Пример #5
0
 def handle(self, *args, **options):
     sound_qs = Sound.objects.select_related("pack", "user", "license") \
                             .filter(processing_state="OK", moderation_state="OK")
     add_all_sounds_to_solr(sound_qs)