From 98769005fc2cc53724d01ea62562e1ff416ade4b Mon Sep 17 00:00:00 2001 From: Ekaterina Vititneva Date: Sat, 3 Aug 2024 20:11:17 +0200 Subject: [PATCH] Update views.py --- project_1/wiki/encyclopedia/views.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/project_1/wiki/encyclopedia/views.py b/project_1/wiki/encyclopedia/views.py index 7e814ed..76c2f41 100644 --- a/project_1/wiki/encyclopedia/views.py +++ b/project_1/wiki/encyclopedia/views.py @@ -26,14 +26,6 @@ def title(request, title): "title_content": content }) -""" -def search(request): - query = request.GET.get('q') - all_entries = util.list_entries() - if query in all_entries: - return redirect('title_1', title=query) -""" - def search(request): query = request.GET.get('q') if not query: