Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
f307cc3e
Commit
f307cc3e
authored
15 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
changed way of featuring elections
parent
8e0d2d58
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
helios
+1
-1
1 addition, 1 deletion
helios
server_ui/views.py
+1
-2
1 addition, 2 deletions
server_ui/views.py
with
2 additions
and
3 deletions
helios
@
d94f76c9
Compare
74b3985d
...
d94f76c9
Subproject commit
74b3985dff3f6ab55199799aa6eddb8515d525b
8
Subproject commit
d94f76c9f6e14ab92a702dbeaae2dd5cde92703
8
This diff is collapsed.
Click to expand it.
server_ui/views.py
+
1
−
2
View file @
f307cc3e
...
...
@@ -22,8 +22,7 @@ def get_election():
def
home
(
request
):
# load the featured elections
featured_elections
=
[
Election
.
get_by_short_name
(
short_name
)
for
short_name
in
settings
.
FEATURED_ELECTIONS
]
featured_elections
=
[
e
for
e
in
featured_elections
if
e
!=
None
]
featured_elections
=
Election
.
get_featured
()
return
render_template
(
request
,
"
index
"
,
{
'
elections
'
:
featured_elections
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment