From 989d1c0546819163fd425994e7eef2294e1f8a45 Mon Sep 17 00:00:00 2001 From: Benoit Date: Tue, 27 Jan 2026 23:10:36 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20pas=20de=20r=C3=A9sultats=20et=20erreur?= =?UTF-8?q?=20500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/models/crud.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/models/crud.py b/backend/src/models/crud.py index 22b0c74..dc850e8 100644 --- a/backend/src/models/crud.py +++ b/backend/src/models/crud.py @@ -178,7 +178,6 @@ def get_tracks( query = query.filter(AudioTrack.instruments.any(instrument)) # Second, track's instruments array length must match the specified instruments count # This is PostgreSQL specific - we check that the array has exactly the same elements - from sqlalchemy import func query = query.filter(func.array_length(AudioTrack.instruments, 1) == len(instruments)) else: # Track must have ALL specified instruments (but can have others too)