Skip to content

Commit

Permalink
docs: typos in filter() and remove() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kingosticks committed Aug 8, 2019
1 parent 703cd91 commit b4e4a6d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mopidy/core/tracklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ def clear(self):

def filter(self, criteria):
"""
Filter the tracklist by the given criterias.
Filter the tracklist by the given criteria.
A criteria consists of a model field to check and a list of values to
compare it against. If the model field matches one of the values, it
Each rule in the criteria consists of a model field and a list of values to
compare it against. If the model field matches any of the values, it
may be returned.
Only tracks that matches all the given criterias are returned.
Only tracks that match all the given criteria are returned.
Examples::
Expand All @@ -425,7 +425,7 @@ def filter(self, criteria):
# matching URI ('xyz' or 'abc')
filter({'tlid': [1, 3, 6], 'uri': ['xyz', 'abc']})
:param criteria: on or more criteria to match by
:param criteria: one or more rules to match by
:type criteria: dict, of (string, list) pairs
:rtype: list of :class:`mopidy.models.TlTrack`
"""
Expand Down Expand Up @@ -483,9 +483,9 @@ def remove(self, criteria):
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
:param criteria: on or more criteria to match by
:type criteria: dict
:rtype: list of :class:`mopidy.models.TlTrack` that was removed
:param criteria: one or more rules to match by
:type criteria: dict, of (string, list) pairs
:rtype: list of :class:`mopidy.models.TlTrack` that were removed
"""
tl_tracks = self.filter(criteria)
for tl_track in tl_tracks:
Expand Down

0 comments on commit b4e4a6d

Please sign in to comment.