diff --git a/tubbymemes/routes/meme.py b/tubbymemes/routes/meme.py index b7b8edb..4cf9064 100644 --- a/tubbymemes/routes/meme.py +++ b/tubbymemes/routes/meme.py @@ -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) diff --git a/tubbymemes/templates/index.html b/tubbymemes/templates/index.html index 3a8c0b7..06d4d38 100644 --- a/tubbymemes/templates/index.html +++ b/tubbymemes/templates/index.html @@ -24,6 +24,8 @@ {% endfor %} {% endfor %} + {% else %} +

No memes approved yet brah!

{% endif %}