diff --git a/.gitignore b/.gitignore index f393e3d..44fa0d5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ node_modules __pycache__/ data/ + +.env diff --git a/main.py b/main.py index 4657b62..03894f9 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ import render app = Flask(__name__) dotenv.load_dotenv() - +CURRENT_VOTE = os.getenv('CURRENT_VOTE') DISCORD_WEBHOOK = os.getenv('DISCORD_WEBHOOK') # If votes file doesn't exist, create it @@ -52,7 +52,7 @@ def faviconPNG(): def index(): year = datetime.datetime.now().year votes = render.votes() - return render_template('index.html',year=year,votes=votes) + return render_template('index.html',year=year,votes=votes, current_vote=CURRENT_VOTE) @app.route('/') def catch_all(path): diff --git a/templates/index.html b/templates/index.html index c9ab3ff..841b782 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,6 +44,7 @@

Vote on projects from
Nathan.Woodburn/

+

{{current_vote}}

You have 0 votes.

0% of the voting power.

Vote here