From 28f19955c149fce74d9a8a81e05da9f9dff5147c Mon Sep 17 00:00:00 2001 From: skimmilk09 Date: Tue, 4 Aug 2026 19:50:56 -0400 Subject: [PATCH] Show query time and fix context name in recent queries The context name never showed up because the template used prev.context_name, but get_queries() aliases that column to 'context', so the check was always false. Also add the query timestamp using the existing localtime filter. --- src/components/code_queries/templates/recent_queries.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/code_queries/templates/recent_queries.html b/src/components/code_queries/templates/recent_queries.html index 7e3ff2b2..583050a3 100644 --- a/src/components/code_queries/templates/recent_queries.html +++ b/src/components/code_queries/templates/recent_queries.html @@ -14,8 +14,9 @@

Your recent queries:

View Retry - {% if prev.context_name %} -

{{ prev.context_name }}:

+

{{ prev.time | localtime }}

+ {% if prev.context %} +

{{ prev.context }}:

{% endif %} {% if prev.code %}

{{prev.code | truncate(50)}}