leave note if no memes yet

This commit is contained in:
lza_menace
2022-03-10 23:04:06 -08:00
parent 64edbd649e
commit b138b22541
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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)
+2
View File
@@ -24,6 +24,8 @@
{% endfor %}
</div>
{% endfor %}
{% else %}
<p class="subtitle">No memes approved yet brah!</p>
{% endif %}
</div>