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)