Skip to content

Commit 0ba83c4

Browse files
committed
fixup! Add ability to filter flexible attributes through the Query
1 parent cf33a04 commit 0ba83c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beets/dbcore/query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class NumericColumnQuery(MatchQuery[AnySQLiteType]):
313313
def col_name(self) -> str:
314314
"""Cast a flexible attribute column (string) to NUMERIC affinity."""
315315
col_name = super().col_name
316-
return col_name if self.fast else f"CAST({col_name} AS NUMERIC)"
316+
return col_name if self.on_model else f"CAST({col_name} AS NUMERIC)"
317317

318318

319319
class BooleanQuery(NumericColumnQuery[bool]):

0 commit comments

Comments
 (0)