openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 90bd16fd1cc1c489677b8b782e59dfddcfa57574
parent 168d0a85fc3627b901d507fdc4b49707f717c639
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Tue,  8 Sep 2020 11:56:45 +0300

be more effective

Diffstat:
Mii-node/web.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ii-node/web.go b/ii-node/web.go @@ -318,6 +318,9 @@ func www_query(ctx *WebContext, w http.ResponseWriter, r *http.Request, q ii.Que db := ctx.www.db req := ctx.BasePath + if rss { + q.Start = -100 + } mis := db.LookupIDS(db.SelectIDS(q)) ii.Trace.Printf("www query") @@ -325,9 +328,6 @@ func www_query(ctx *WebContext, w http.ResponseWriter, r *http.Request, q ii.Que return mis[i].Off > mis[j].Off }) count := len(mis) - if rss && count > 100 { - count = 100 - } start := makePager(ctx, count, page) nr := PAGE_SIZE for i := start; i < count && nr > 0; i++ {