From da1602f81a2afcd9bfe53d8cc7feb77f51a192e4 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Fri, 3 Jan 2014 10:19:50 -0500 Subject: [PATCH] Tiny search improvements --- karmaworld/apps/notes/search.py | 1 + karmaworld/templates/notes/note_list_entry.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/karmaworld/apps/notes/search.py b/karmaworld/apps/notes/search.py index db36aa7..856a84a 100644 --- a/karmaworld/apps/notes/search.py +++ b/karmaworld/apps/notes/search.py @@ -8,6 +8,7 @@ import karmaworld.secret.indexden as secret import logging +logging.basicConfig() logger = logging.getLogger(__name__) api_client = itc.ApiClient(secret.PRIVATE_URL) diff --git a/karmaworld/templates/notes/note_list_entry.html b/karmaworld/templates/notes/note_list_entry.html index 627a7c8..c640386 100644 --- a/karmaworld/templates/notes/note_list_entry.html +++ b/karmaworld/templates/notes/note_list_entry.html @@ -22,7 +22,7 @@
{% if note_preview %} - {{ note_preview|safe }} … + {{ note_preview|safe }} {% else %} {{ note.text|slice:":500" }} … {% endif %} -- 2.25.1