306:edefddec933d
Anton Shestakov <av6@dwimlabs.net>, Sun, 24 Sep 2017 12:25:05 +0800
viewer: use subqueries to get data on index page Before, there were bare columns in the aggregate query, their values were undefined (but it somehow worked), as SQLite docs say. Good news is that now this bigger query uses (project_id, ordinal) index and is really fast.

previous change 289:622eaacee683

templates/ui/check-log.html

Permissions: -rw-r--r--

Other formats: Feeds:
<pre class="check-log">{#
#}{% for number, line in enumerate(lines, 1) %}{#
#}<div id="l{{ number }}"{% if 'task' in line %} data-task="{{ line['task'] }}"{% end %}{% if 'cls' in line %} class="{{ line['cls'] }}"{% end %}>{#
#}<a href="#l{{ number }}" class="lineno" data-line-number="{{ number }}"></a>{#
#}{% if 'link' in line %}{#
#}{{ line['text'][:line['link_start']] }}{#
#}<a href="{{ line['link'] }}" class="filelink">{#
#}{{ line['text'][line['link_start']:line['link_end']] }}{#
#}</a>{#
#}{{ line['text'][line['link_end']:] }}{#
#}{% else %}{#
#}{{ line['text'] }}{#
#}{% end %}{#
#}</div>{#
#}{% end %}{#
#}</pre>