diff --git a/pyproject.toml b/pyproject.toml index 26064fd..3fb87a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,8 +69,9 @@ platforms = ["any"] zip-safe = false include-package-data = true -[tool.setuptools.packages] -find = {} +[tool.setuptools.packages.find] +where = ["."] +include = ["pyrekordbox", "pyrekordbox.*"] [tool.setuptools_scm] write_to = "pyrekordbox/_version.py" diff --git a/pyrekordbox/db6/smartlist.py b/pyrekordbox/db6/smartlist.py index fbdfb3e..1862320 100644 --- a/pyrekordbox/db6/smartlist.py +++ b/pyrekordbox/db6/smartlist.py @@ -320,11 +320,12 @@ def filter_clause(self) -> BooleanClauseList: comps = list() for cond in self.conditions: val_left, val_right = _get_condition_values(cond) - + # val_left = str(-abs(int(val_left))) if val_left is not None else "" if cond.property in PROPERTY_COLUMN_MAP: colum_name = PROPERTY_COLUMN_MAP[cond.property] if cond.property == Property.MYTAG: - val_left = str(right_bitshift(int(val_left))) + if int(val_left) < 0: + val_left = str(right_bitshift(int(val_left))) if cond.operator == Operator.EQUAL: comp = getattr(DjmdContent, colum_name) == val_left