Skip to content

Commit 5bb8da4

Browse files
committed
fix
1 parent b355bc6 commit 5bb8da4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/condition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Top:
7171
"""
7272

7373
limit: Union[int, None] = 1
74-
order_by: Union[str, List[str]] = ["KEY"]
74+
order_by: Union[str, List[str]] = "KEY"
7575
offset: int = 0
7676

7777
def __post_init__(self):

docs/src/query/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Session & dj.top(limit=10, order_by='session_date')
231231
The result of this expression returns the first 10 rows of `Session` and sorts them
232232
by their `session_date` in ascending order. If the `order_by` argument was instead: `session_date DESC`, then it would be sorted in descending order.
233233

234-
The default values for `dj.top` parameters are `limit=1`, `order_by=["KEY"]`, and `offset=0`.
234+
The default values for `dj.top` parameters are `limit=1`, `order_by="KEY"`, and `offset=0`.
235235

236236
## Restriction
237237

0 commit comments

Comments
 (0)