Fix little mistake
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2020-04-09 14:06:09 +02:00
parent e5e1ebf875
commit 67c33e0615
2 changed files with 3 additions and 2 deletions

3
app.py
View File

@ -60,7 +60,8 @@ def colorify(model):
@app.route('/')
def home():
return render_template('layout.html', search_form=SearchForm(), title='Animes torrents search engine')
return render_template('layout.html', search_form=SearchForm(), title='Animes torrents search engine',
mysql_disabled=not MYSQL_ENABLED)
@app.route('/search')

View File

@ -23,7 +23,7 @@
<i class="fa fa-newspaper-o"></i><i>&nbsp;</i>
<span class="is-hidden-mobile">Latest torrents</span>
</a>
{% if mysql_disabled %}
{% if not mysql_disabled %}
<a class="navbar-item has-tooltip-bottom" data-tooltip="My seeded torrents"
href="{{ url_for('list_animes') }}">
<i class="fa fa-cloud-download"></i><i>&nbsp;</i>