Changes between Version 1 and Version 2 of Ticket #12915, comment 6


Ignore:
Timestamp:
Oct 27, 2016, 4:52:20 AM (8 years ago)
Author:
Jun Omae
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12915, comment 6

    v1 v2  
    1010{{{#!diff
    1111diff --git a/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py b/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py
    12 index d57b338..bda23ca 100644
     12index d57b338..0f5536b 100644
    1313--- a/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py
    1414+++ b/wikiautocompleteplugin/trunk/wikiautocomplete/web_ui.py
     
    2121 from trac.util.translation import dgettext
    2222 from trac.web import IRequestFilter, IRequestHandler
    23 @@ -60,15 +61,27 @@ class WikiAutoCompleteModule(Component):
     23@@ -60,15 +61,29 @@ class WikiAutoCompleteModule(Component):
    2424             self._send_json(req, completions)
    2525
     
    5252+                    """ % {'expr': expr}, args)
    5353+            else:
    54 +                rows = []
     54+                rows = self.env.db_query("""
     55+                    SELECT id, summary FROM ticket
     56+                    ORDER BY changetime DESC LIMIT 10""")
    5557             completions = [{
    5658                 'id': row[0],