Commit 48f77bf8 authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Always register imported election

parent 7656da10
......@@ -137,10 +137,10 @@ lwt () =
Printf.sprintf "Ignored: %s" f.f_election
); return ()
| Some w ->
let module W = (val w : REGISTRABLE_ELECTION) in
lwt w = W.register () in
let module W = (val w : WEB_ELECTION) in
if featured then (
let module W = (val w : REGISTRABLE_ELECTION) in
lwt w = W.register () in
let module W = (val w : WEB_ELECTION) in
let uuid = Uuidm.to_string W.election.e_params.e_uuid in
Site.add_featured_election uuid
) else return ()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment