Skip to content

Commit

Permalink
Use set instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Dec 15, 2023
1 parent f04a642 commit 978529b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion general/management/commands/report_index_statuses.py
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ def handle(self, *args, **options):
console_logger.info("Getting freesound db data...")
# Get all moderated and processed sound ids
queryset = Sound.objects.filter(processing_state='OK', moderation_state='OK').order_by('id').only("id")
fs_mp = [sound.id for sound in queryset]
fs_mp = set([sound.id for sound in queryset])
# Get ell moderated, processed and analysed sounds
sound_ids_analyzed_with_analyzer_ok = \
list(SoundAnalysis.objects.filter(analyzer=settings.FREESOUND_ESSENTIA_EXTRACTOR_NAME, analysis_status="OK")

0 comments on commit 978529b

Please sign in to comment.