mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Round off the rank score of search hits to two decimal places
This commit is contained in:
@ -49,7 +49,7 @@
|
||||
<h2>Results {{firsthit}}-{{lasthit}} of {%if hitcount = 1000%}more than 1000{%else%}{{hitcount}}{%endif%}.</h2>
|
||||
{%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}
|
||||
{%for hit in hits %}
|
||||
{{forloop.counter0|add:firsthit}}. <a href="http://archives.postgresql.org/{{hit.list}}/{{hit.year}}-{{hit.month}}/msg{{hit.msgnum}}.php">{{hit.subject}}</a> [{{hit.rank}}]<br/>
|
||||
{{forloop.counter0|add:firsthit}}. <a href="http://archives.postgresql.org/{{hit.list}}/{{hit.year}}-{{hit.month}}/msg{{hit.msgnum}}.php">{{hit.subject}}</a> [{{hit.rank|floatformat:2}}]<br/>
|
||||
{{hit.abstract|safe}}<br/>
|
||||
<a href="http://archives.postgresql.org/{{hit.list}}/{{hit.year}}-{{hit.month}}/msg{{hit.msgnum}}.php">http://archives.postgresql.org/{{hit.list}}/{{hit.year}}-{{hit.month}}/msg{{hit.msgnum}}.php</a><br/>
|
||||
<br/>
|
||||
|
@ -31,7 +31,7 @@
|
||||
<h2>Results {{firsthit}}-{{lasthit}} of {%if hitcount = 1000%}more than 1000{%else%}{{hitcount}}{%endif%}.</h2>
|
||||
{%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}
|
||||
{%for hit in hits %}
|
||||
{{forloop.counter0|add:firsthit}}. <a href="{{hit.url}}">{{hit.title}}</a> [{{hit.rank}}]<br/>
|
||||
{{forloop.counter0|add:firsthit}}. <a href="{{hit.url}}">{{hit.title}}</a> [{{hit.rank|floatformat:2}}]<br/>
|
||||
<div>...{{hit.abstract|safe}}...</div>
|
||||
<a href="{{hit.url}}">{{hit.url}}</a><br/>
|
||||
<br/>
|
||||
|
Reference in New Issue
Block a user