Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed Aug 3, 2024
1 parent 32d4fdc commit 9876900
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions project_1/wiki/encyclopedia/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9876900

Please sign in to comment.