Skip to content

Commit

Permalink
Minor documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Aug 24, 2024
1 parent 397c453 commit 587c65a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/icat/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,14 +466,15 @@ def addConditions(self, conditions):
"""Add conditions to the constraints to build the WHERE clause from.
:param conditions: the conditions to restrict the search
result. This must be a list of tuples with a pair of an
attribute name and a condition on that attribute
result. This must be a list of tuples, each being a pair
of an attribute name and a condition on that attribute
respectively. The attribute name may be wrapped with a
JPQL function (such as "UPPER(title)").
For backward compatibility with previous versions, this
may alternatively be a mapping of attribute names to a
(lists of) conditions.
(lists of) conditions. This legacy use is deprecated,
though.
:type conditions: :class:`list` of :class:`tuple` or :class:`dict`
:raise ValueError: if any attribute in `conditions` is not valid.
Expand Down

0 comments on commit 587c65a

Please sign in to comment.