comparison pkg/controllers/importqueue.go @ 2772:0f467af6bf5c

Fixed "previous" response in importqueue listing.
author Sascha Wilde <wilde@intevation.de>
date Fri, 22 Mar 2019 11:46:57 +0100
parents 9a493d27bf3f
children 241e7f05a538
comparison
equal deleted inserted replaced
2770:ab1a22052437 2772:0f467af6bf5c
242 } 242 }
243 243
244 if !counting { 244 if !counting {
245 l.stmt.WriteString(" ORDER BY enqueued DESC ") 245 l.stmt.WriteString(" ORDER BY enqueued DESC ")
246 a.stmt.WriteString(" ORDER BY enqueued LIMIT 1") 246 a.stmt.WriteString(" ORDER BY enqueued LIMIT 1")
247 b.stmt.WriteString(" ORDER BY enqueued LIMIT 1") 247 b.stmt.WriteString(" ORDER BY enqueued DESC LIMIT 1")
248 } 248 }
249 249
250 if noBefore { 250 if noBefore {
251 b = nil 251 b = nil
252 } 252 }