Skip to content

Commit ace4db4

Browse files
yurugAltGr
authored andcommitted
fix(partition-view): Reactivate the feature
Signed-off-by: Yann Regis-Gianas <[email protected]>
1 parent 7f88fc3 commit ace4db4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/utils/learnocaml_partition_create.ml

+3-4
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ let asak_partition prof fun_name sol by_grade =
9090
(ans.Partition.bad_type @ bad_type, (i,ans.Partition.clusters) :: res)
9191
) by_grade ([],[])
9292

93-
let partition _exo_name _fun_name _prof = assert false (* TODO
93+
let partition exo_name fun_name prof =
9494
Learnocaml_store.Exercise.get exo_name
9595
>>= fun exo ->
96-
let prelude = Learnocaml_exercise.(access File.prelude exo) in
97-
let prepare = Learnocaml_exercise.(decipher File.prepare exo) in
96+
let prelude = Learnocaml_exercise.(access File.prelude_ml exo) in
97+
let prepare = Learnocaml_exercise.(decipher File.prepare_ml exo) in
9898
let prelude = prelude ^ "\n" ^ prepare in
9999
let solution = Learnocaml_exercise.(decipher File.solution exo) in
100100
let solution = prelude ^ "\n" ^ solution in
@@ -104,4 +104,3 @@ let partition _exo_name _fun_name _prof = assert false (* TODO
104104
let by_grade = partition_by_grade fun_name lst in
105105
let bad_type,partition_by_grade = asak_partition prof fun_name solution by_grade in
106106
{not_graded; bad_type; partition_by_grade}
107-
*)

0 commit comments

Comments
 (0)