Skip to content

Commit

Permalink
fixup! Add ability to filter flexible attributes through the Query
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed May 4, 2024
1 parent cf33a04 commit 0ba83c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/dbcore/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class NumericColumnQuery(MatchQuery[AnySQLiteType]):
def col_name(self) -> str:
"""Cast a flexible attribute column (string) to NUMERIC affinity."""
col_name = super().col_name
return col_name if self.fast else f"CAST({col_name} AS NUMERIC)"
return col_name if self.on_model else f"CAST({col_name} AS NUMERIC)"


class BooleanQuery(NumericColumnQuery[bool]):
Expand Down

0 comments on commit 0ba83c4

Please sign in to comment.