I think all fdeatures are finished
This commit is contained in:
parent
af66912e04
commit
9c893059e5
4 changed files with 525 additions and 217 deletions
src
File diff suppressed because it is too large
Load diff
|
@ -29,6 +29,7 @@ type BaseQuery = object
|
|||
inPostId : Option[int64]
|
||||
query : Option[string]
|
||||
queryType : Option[string]
|
||||
limit : Option[int]
|
||||
type DbInfo = object
|
||||
firstPost : int64
|
||||
lastPost : int64
|
||||
|
@ -177,7 +178,12 @@ proc doQuery*(a : Request, b : ControllerData) =
|
|||
|
||||
if queryObject.query.isNone():
|
||||
searchFieldParams.add(" limit 100")
|
||||
|
||||
elif queryObject.limit.isSome():
|
||||
let value = queryObject.limit.get()
|
||||
echo value
|
||||
if value != 0:
|
||||
searchFieldParams.add(" limit ?")
|
||||
params.add($value)
|
||||
|
||||
let finalQuery =
|
||||
if queryObject.query.isSome():
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue