fix timestamp compare
This commit is contained in:
parent
26f01efec0
commit
9c87aa63ea
6 changed files with 15 additions and 22 deletions
|
|
@ -83,7 +83,7 @@ let mk_keys ~db_conn (module Keys : Keys.S) ~last_issue_date =
|
|||
| None -> denom_l
|
||||
| Some timestamp ->
|
||||
List.filter
|
||||
(fun v -> Timestamp.geq v.Denomination.stamp_start timestamp)
|
||||
(fun v -> Timestamp.compare timestamp v.Denomination.stamp_start <= 0)
|
||||
denom_l
|
||||
in
|
||||
let* denominations = Denomination.make_denom_group_sorted denom_l in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue