Skip to content

Commit 587c65a

Browse files
committed
Minor documentation tweaks
1 parent 397c453 commit 587c65a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/icat/query.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,15 @@ def addConditions(self, conditions):
466466
"""Add conditions to the constraints to build the WHERE clause from.
467467
468468
:param conditions: the conditions to restrict the search
469-
result. This must be a list of tuples with a pair of an
470-
attribute name and a condition on that attribute
469+
result. This must be a list of tuples, each being a pair
470+
of an attribute name and a condition on that attribute
471471
respectively. The attribute name may be wrapped with a
472472
JPQL function (such as "UPPER(title)").
473473
474474
For backward compatibility with previous versions, this
475475
may alternatively be a mapping of attribute names to a
476-
(lists of) conditions.
476+
(lists of) conditions. This legacy use is deprecated,
477+
though.
477478
:type conditions: :class:`list` of :class:`tuple` or :class:`dict`
478479
:raise ValueError: if any attribute in `conditions` is not valid.
479480

0 commit comments

Comments
 (0)