Implement sorting by flmt
This commit is contained in:
parent
a13bcbea25
commit
8e900e2d3f
1 changed files with 20 additions and 0 deletions
|
@ -304,6 +304,17 @@ class PostSearchConfig(BaseSearchConfig):
|
||||||
["creation-date", "creation-time", "date", "time"],
|
["creation-date", "creation-time", "date", "time"],
|
||||||
search_util.create_date_filter(model.Post.creation_time),
|
search_util.create_date_filter(model.Post.creation_time),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
[
|
||||||
|
"file-last-modified-time",
|
||||||
|
"file-modified",
|
||||||
|
"source-modified",
|
||||||
|
"flmt",
|
||||||
|
],
|
||||||
|
search_util.create_date_filter(
|
||||||
|
model.Post.file_last_modified_time
|
||||||
|
),
|
||||||
|
),
|
||||||
(
|
(
|
||||||
[
|
[
|
||||||
"last-edit-date",
|
"last-edit-date",
|
||||||
|
@ -390,6 +401,15 @@ class PostSearchConfig(BaseSearchConfig):
|
||||||
["creation-date", "creation-time", "date", "time"],
|
["creation-date", "creation-time", "date", "time"],
|
||||||
(model.Post.creation_time, self.SORT_DESC),
|
(model.Post.creation_time, self.SORT_DESC),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
[
|
||||||
|
"file-last-modified-time",
|
||||||
|
"file-modified",
|
||||||
|
"source-modified",
|
||||||
|
"flmt",
|
||||||
|
],
|
||||||
|
(model.Post.file_last_modified_time, self.SORT_DESC),
|
||||||
|
),
|
||||||
(
|
(
|
||||||
[
|
[
|
||||||
"last-edit-date",
|
"last-edit-date",
|
||||||
|
|
Reference in a new issue