Skip to content

Commit 8f8c03a

Browse files
ETL datasets result should be sorted by creation date desc (#147)
1 parent c70c7a6 commit 8f8c03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cognition_objects/markdown_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_all_paginated_for_category_origin(
7777
page = prevent_sql_injection(page, isinstance(page, int))
7878

7979
query_add = f"""
80-
ORDER BY md.created_at
80+
ORDER BY md.created_at DESC
8181
LIMIT {limit}
8282
OFFSET {(page - 1) * limit}
8383
"""

0 commit comments

Comments
 (0)