Skip to content
Snippets Groups Projects
Commit b1c4b13b authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix search results sorting

parent 92b9bce6
Branches
No related tags found
2 merge requests!905fix search results sorting,!904Fix search results sorting
Pipeline #16412 passed
...@@ -789,7 +789,9 @@ class MainSearchPageMixin( ...@@ -789,7 +789,9 @@ class MainSearchPageMixin(
# Put results without a timestamp first, as they'll be person litsings etc. # Put results without a timestamp first, as they'll be person litsings etc.
key=lambda result: result.timestamp key=lambda result: result.timestamp
if hasattr(result, "timestamp") if hasattr(result, "timestamp")
else datetime.date(year=9999, month=1, day=1), else datetime.datetime(year=9999, month=1, day=1).replace(
tzinfo=datetime.timezone.utc
),
reverse=True, reverse=True,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment