We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d871a commit 3c781cbCopy full SHA for 3c781cb
src/state/learnocaml_store.ml
@@ -203,7 +203,12 @@ module Exercise = struct
203
List.iter (fun st -> Hashtbl.add tbl st.id st) l;
204
tbl)
205
@@ function
206
- | Unix.Unix_error (Unix.ENOENT, _, _) -> Lwt.return tbl
+ | Unix.Unix_error (Unix.ENOENT, _, _) ->
207
+ Lazy.force !index >>= fun index ->
208
+ Exercise.Index.fold_exercises (fun () id _ ->
209
+ Hashtbl.add tbl id (Exercise.Status.default id))
210
+ () index;
211
+ Lwt.return tbl
212
| e -> Lwt.fail e
213
)
214
0 commit comments