Changes between Version 1 and Version 2 of Ticket #12915, comment 6
- Timestamp:
- Oct 27, 2016, 4:52:20 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12915, comment 6
v1 v2 10 10 {{{#!diff 11 11 diff --git a/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py b/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py 12 index d57b338.. bda23ca10064412 index d57b338..0f5536b 100644 13 13 --- a/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py 14 14 +++ b/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py … … 21 21 from trac.util.translation import dgettext 22 22 from trac.web import IRequestFilter, IRequestHandler 23 @@ -60,15 +61,2 7@@ class WikiAutoCompleteModule(Component):23 @@ -60,15 +61,29 @@ class WikiAutoCompleteModule(Component): 24 24 self._send_json(req, completions) 25 25 … … 52 52 + """ % {'expr': expr}, args) 53 53 + else: 54 + rows = [] 54 + rows = self.env.db_query(""" 55 + SELECT id, summary FROM ticket 56 + ORDER BY changetime DESC LIMIT 10""") 55 57 completions = [{ 56 58 'id': row[0],