Skip to content

Commit d432b50

Browse files
committed
fixup! Add ability to filter flexible attributes through the Query
1 parent f3e4e90 commit d432b50

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)