leave note if no memes yet

main
lza_menace 3 years ago
parent 64edbd649e
commit b138b22541

@ -20,7 +20,7 @@ bp = Blueprint('meme', 'meme')
def index():
memes = Meme.query.filter(
Meme.approved == True
).order_by(Meme.create_date.desc())
).order_by(Meme.create_date.desc()).all()
return render_template('index.html', memes=memes)

@ -24,6 +24,8 @@
{% endfor %}
</div>
{% endfor %}
{% else %}
<p class="subtitle">No memes approved yet brah!</p>
{% endif %}
</div>

Loading…
Cancel
Save