|
|
@@ -16,7 +16,7 @@ BLUEPRINT = Blueprint(
|
|
|
|
|
|
|
|
|
@BLUEPRINT.route('/')
|
|
|
-def public_index():
|
|
|
+def index():
|
|
|
"""View list of votes"""
|
|
|
ballots = Ballot.query.all()
|
|
|
|
|
|
@@ -27,7 +27,7 @@ def public_index():
|
|
|
|
|
|
|
|
|
@BLUEPRINT.route('/<int:ballot_id>', methods=["GET", "POST"])
|
|
|
-def public_view(ballot_id):
|
|
|
+def view(ballot_id):
|
|
|
"""Vote and view results of ballot"""
|
|
|
ballot = Ballot.query.get(ballot_id)
|
|
|
|