From: Charles Connell Date: Fri, 3 Jan 2014 15:19:50 +0000 (-0500) Subject: Tiny search improvements X-Git-Tag: release-20150131~321 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=da1602f81a2afcd9bfe53d8cc7feb77f51a192e4;p=oweals%2Fkarmaworld.git Tiny search improvements --- 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 %}