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 c6c0c52
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/icat/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,7 @@ def setOrder(self, order):
the latter being either "ASC" or "DESC" for ascending or
descending order respectively.
:type order: iterable or :class:`bool`
:raise ValueError: if any attribute in `order` is not valid or
if any attribute appears more than once in the resulting
ORDER BY clause.
:raise ValueError: if any attribute in `order` is not valid.
.. versionchanged:: 0.19.0
allow one to many relationships in `order`. Emit a
Expand Down Expand Up @@ -466,14 +464,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 c6c0c52

Please sign in to comment.