Skip to content

Commit

Permalink
Merge pull request #357 from eNMS-automation/aaron-messick-patch-1-1
Browse files Browse the repository at this point in the history
add option for Order to rest_api.py
  • Loading branch information
afourmy committed Aug 25, 2021
2 parents 9b4a046 + 0013dc0 commit ef033d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eNMS/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def search(self, **kwargs):
filtering_kwargs = {
"draw": 1,
"columns": [{"data": column} for column in kwargs["columns"]],
"order": [{"column": 0, "dir": "asc"}],
"order": rest_body.get("order", [{"column": 0, "dir": "asc"}]),
"start": kwargs.get("start", 0),
"length": kwargs.get("maximum_return_records", 10),
"form": kwargs.get("search_criteria", {}),
Expand Down

0 comments on commit ef033d1

Please sign in to comment.