elections: fix the sqlalchemy.url in the alembic.ini config file

Jinja variable needs to start with {{ and end with }}, both.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-05-20 20:47:37 +02:00
parent f338862ac1
commit 2cad7baf13

View file

@ -14,7 +14,7 @@ script_location = /opt/app-root/src/alembic
{% if env == 'staging' %}
sqlalchemy.url = postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.stg.phx2.fedoraproject.org/{{ elections_db_name }}
{% else %}
sqlalchemy.url = postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/elections_db_name }}
sqlalchemy.url = postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/{{ elections_db_name }}
{% endif %}