|
@@ -91,7 +91,7 @@ function M.search_book_list(msg_body)
|
|
param = " WHERE "..param
|
|
param = " WHERE "..param
|
|
end
|
|
end
|
|
|
|
|
|
- local sql = "SELECT * FROM whitelist_books "..param..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
|
|
|
|
|
|
+ local sql = "SELECT * FROM whitelist_books "..param.."ORDER BY id DESC"..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
|
|
|
|
|
|
local list = mysqldbx.query(sql)
|
|
local list = mysqldbx.query(sql)
|
|
|
|
|