Skip to content

Commit

Permalink
Update comments to specify sorting format
Browse files Browse the repository at this point in the history
  • Loading branch information
eito-fis committed Jul 1, 2021
1 parent 769fffe commit 469141e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_records(
offset: int, gives number of rows to skip
order_by: list of dictionaries, where each dictionary has a 'field' and
'direction' field.
See https://github.com/centerofci/sqlalchemy-filters for details.
See: https://github.com/centerofci/sqlalchemy-filters#sort-format
filters: list of dictionaries, where each dictionary has a 'field' and 'op'
field, in addition to an 'value' field if appropriate.
See: https://github.com/centerofci/sqlalchemy-filters#filters-format
Expand Down
2 changes: 2 additions & 0 deletions mathesar/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class RecordViewSet(viewsets.ViewSet):

# For filter parameter formatting, see:
# https://github.com/centerofci/sqlalchemy-filters#filters-format
# For sorting parameter formatting, see:
# https://github.com/centerofci/sqlalchemy-filters#sort-format
def list(self, request, table_pk=None):
paginator = TableLimitOffsetPagination()

Expand Down

0 comments on commit 469141e

Please sign in to comment.