Get newest, not oldest
This commit is contained in:
parent
82ccf565fc
commit
72e797e6e6
|
@ -586,9 +586,9 @@ struct
|
|||
|
||||
let open Task in
|
||||
let compute_index =
|
||||
let rec filter = function
|
||||
let filter = function
|
||||
| [] | [_] | [_; _] | [_; _; _] as latest_three -> latest_three
|
||||
| _too_old :: more_recent -> filter more_recent
|
||||
| newest :: newer :: new_ :: _old -> [newest; newer; new_]
|
||||
in
|
||||
Articles.compute_index
|
||||
~filter
|
||||
|
|
Loading…
Reference in a new issue