From d1c25a0c61bf05a0572be2da7304d6c9846bf0b4 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sun, 31 Aug 2025 04:06:27 +0000 Subject: [PATCH] Update web/core/views.py --- web/core/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/core/views.py b/web/core/views.py index 6bde8f2..1d329d6 100644 --- a/web/core/views.py +++ b/web/core/views.py @@ -1021,9 +1021,9 @@ def login_attempts(request): attempts = LoginAttempt.objects.filter(timestamp__gte=cutoff).order_by("-timestamp") return render(request, "tools/login_attempts.html", {"attempts": attempts}) - @login_required - @require_POST - def clear_history(request): +@login_required +@require_POST +def clear_history(request): """ Clear the current user's history shown on the Search page: - SearchHistory (last 10 searches)