From 49d823e13528536d064d32f7fb84c2f13448db21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sun, 4 Jul 2021 12:08:21 -0500 Subject: Fix request search when is empty --- youtube/search.py | 2 +- youtube/templates/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube/search.py b/youtube/search.py index f9591fe..33e9251 100644 --- a/youtube/search.py +++ b/youtube/search.py @@ -63,7 +63,7 @@ def get_search_json(query, page, autocorrect, sort, filters): def get_search_page(): query = request.args.get('search_query') or request.args.get('query') if query is None: - return flask.render_template('base.html', title='Search') + return flask.render_template('home.html', title='Search') page = request.args.get("page", "1") autocorrect = int(request.args.get("autocorrect", "1")) diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 8a0238a..3a5d9d0 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -22,7 +22,7 @@