diff --git a/web/core/views.py b/web/core/views.py index 58d8dd8..58af611 100644 --- a/web/core/views.py +++ b/web/core/views.py @@ -8,7 +8,6 @@ from django.views.decorators.http import require_http_methods from datetime import date, timedelta import csv import re -import random from .models import Entry from .forms import ImportForm, EntryForm @@ -564,27 +563,4 @@ def stats_page(request): "top_refs": top_refs, "book_distribution": book_distribution, }, - ) - -@login_required -def search_page(request): - # ... your existing search logic above ... - - # --- Illustration of the Day (simple, no persistence required) --- - illustration_entry = None - qs_day = Entry.objects.exclude(illustration__isnull=True).exclude(illustration="") - if qs_day.exists(): - chosen = qs_day.order_by("?").first() # simple random row - illustration_entry = { - "illustration": chosen.illustration or "", - "application": chosen.application or "", - } - - return render( - request, - "search.html", - { - # ... your existing context keys ... - "illustration_of_the_day": illustration_entry, # << add this - }, ) \ No newline at end of file