I think all fdeatures are finished

This commit is contained in:
user 2024-11-22 09:05:38 -05:00
parent af66912e04
commit 9c893059e5
4 changed files with 525 additions and 217 deletions

File diff suppressed because it is too large Load diff

View file

@ -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.