Skip to content

Commit

Permalink
Merge pull request #803 from LeXofLeviafan/fix-list-filters
Browse files Browse the repository at this point in the history
fixed broken list filters in bookmarks
  • Loading branch information
jarun authored Jan 2, 2025
2 parents 349662a + 3c2c5c6 commit 863e61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bukuserver/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __init__(
super().__init__(name, options, data_type)

def clean(self, value):
on_list = self.filter_type in (FilterType.IN_LIST, FilterType.NOT_IN_LIST)
on_list = _key(self.operation_text) in ('in list', 'not in list')
if on_list and self.name == BookmarkField.ID.name.lower():
value = [int(v.strip()) for v in value.split(',') if v.strip()]
elif on_list:
Expand Down

0 comments on commit 863e61d

Please sign in to comment.