Skip to content
Snippets Groups Projects
Commit f307cc3e authored by Ben Adida's avatar Ben Adida
Browse files

changed way of featuring elections

parent 8e0d2d58
No related branches found
No related tags found
No related merge requests found
Subproject commit 74b3985dff3f6ab55199799aa6eddb8515d525b8
Subproject commit d94f76c9f6e14ab92a702dbeaae2dd5cde927038
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment