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