Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
48f77bf8
Commit
48f77bf8
authored
Jul 08, 2014
by
Stephane Glondu
Browse files
Always register imported election
parent
7656da10
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_main.ml
View file @
48f77bf8
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment