Update web/core/views.py

This commit is contained in:
Joshua Laymon 2025-08-31 04:06:27 +00:00
parent 225eb35d96
commit d1c25a0c61

View File

@ -1021,9 +1021,9 @@ def login_attempts(request):
attempts = LoginAttempt.objects.filter(timestamp__gte=cutoff).order_by("-timestamp") attempts = LoginAttempt.objects.filter(timestamp__gte=cutoff).order_by("-timestamp")
return render(request, "tools/login_attempts.html", {"attempts": attempts}) return render(request, "tools/login_attempts.html", {"attempts": attempts})
@login_required @login_required
@require_POST @require_POST
def clear_history(request): def clear_history(request):
""" """
Clear the current user's history shown on the Search page: Clear the current user's history shown on the Search page:
- SearchHistory (last 10 searches) - SearchHistory (last 10 searches)