From 38a97f4bde1aed9addef274e729bdc82e5b61fa9 Mon Sep 17 00:00:00 2001 From: SecretlyTaco Date: Thu, 20 Apr 2017 11:05:13 +0100 Subject: [PATCH] Fixed a dumb typo --- smash/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/views.py b/smash/views.py index 2b726cf..39f35f6 100644 --- a/smash/views.py +++ b/smash/views.py @@ -39,7 +39,7 @@ def index(): ) #Show random quote on the homepage if any exist - quotes = Quote.query.filter_by(approved=True).order_by(Quote.id.desc())all() + quotes = Quote.query.filter_by(approved=True).order_by(Quote.id.desc()).all() numOfQuotes = len(quotes) if len(quotes)>0: quote = random.choice(quotes)